I always break MySQL communication into each step in PHP using individual variables, like so:
$query = 'select * from sbclassified_config';
$exec = mysql_query($query) or die('MySQL said: ' . mysql_error());
$config = mysql_fetch_array($exec);
This is especially true if you're looping through the result of the query, since you don't want to execute the query again, but just the fetching function.
Also note that I added some MySQL error debugging onto the exec part. This is the easiest way to debug MySQL errors PHP throws at you, as MySQL is usually a bit more descriptive when such an error occurs.