Notice: Undefined index: id in /home/searchengujhy76y/public_html/controllers/category.php on line 22

Notice: Undefined index: id in /home/searchengujhy76y/public_html/controllers/category.php on line 24
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 'LIMIT 1' at line 1select count(distinct(u.user_id))as idavail from user_domains ud left join users u on ud.user_id = u.user_id where ud.category_id = LIMIT 1