Notice: Undefined index: id in /var/www/yellowpagesmerchant.com/controllers/category.php on line 22

Notice: Undefined index: id in /var/www/yellowpagesmerchant.com/controllers/category.php on line 25
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 '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