include "config.php";
$get_sites=mysql_query("select * from $categorytable order by id desc",$conID);
while ($get_rows=@mysql_fetch_array($get_sites)){
$total_found=mysql_num_rows($get_sites);
if($next%4==0){ echo "";}
echo "$get_rows[name] | ";
$next++;
}?>
You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'where category=''' at line 1