I tried to add that to this query , and SQL shot me an error
$s = "select id from $tb_users where user_type = 1 and image_status = 'approved' and total_ratings > 2 WHERE rating NOT LIKE '10' ORDER BY average_rating DESC LIMIT 0,1";
where should i add the NOT LIKE '10' ?