A radiofrequency is performed to the facet joints or sacroiliac joints by creating a lesion or burn in the painful nerve endings to these areas. The purpose is to decrease pain to these areas and improve function for a longer period of time. The procedure is only done after there has been temporary relief from facet injections or sacroiliac joint injections. A special needle is used to provide a controlled heat lesion to the affected nerve endings. The procedure can be performed at different levels of the spinal column at the same visit.