Query Error SELECT id,title,alias,city_id,city_name,state_id,state_name,country_id,country_name,image,type,type2, receive_gt,price_shools,detail_price,is_scholarship,summary_another,type_schools1 FROM fs_schools WHERE published = 1 AND country_id = 0 AND level = AND id <> 8268 GROUP BY RAND() LIMIT 4
Array ( [0] => 42000 [1] => 1064 [2] => You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'AND id <> 8268 GROUP BY RAND() LIMIT 4' at line 5 )