$b = mysql_query("SELECT MIN(hits_to) as hits_min from sites")or die(mysql_error()); $b1 = mysql_fetch_row($b); echo "$b1[hits_min]"; this returns me nothing, but when I do it through phpmyadmin I get the right amount