php – WordPress $ wpdb-> get_results returning null

I'm trying to get values ​​using the code below, but displays null values. I have checked the database and it contains all the data but not able to recover the data. Thank you for the help in advance.

get_results ($ q);

var_dump ($ results);

?>