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

Notice: Undefined index: id in /home/buskiju87yuhgf/public_html/controllers/category.php on line 25
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, users u WHERE ud.user_id = u.user_id AND ud.category_id = LIMIT 1