SQL failed; SQL: SELECT
SQL_CALC_FOUND_ROWS DISTINCT `cat1`.`name`, `cat1`.`slug`, count(`cat1`.`name`) as num_items
FROM
`wp_pod` AS `p`
INNER JOIN
`wp_pod_tbl_pets411` AS `t` ON `t`.`id` = `p`.`tbl_row_id`
LEFT JOIN `wp_pod_rel` AS `rel_cat1` ON `rel_cat1`.`field_id` = 145 AND `rel_cat1`.`pod_id` = `p`.id
LEFT JOIN `wp_pod_tbl_pets411cats` AS `cat1` ON `cat1`.`id` = `rel_cat1`.`tbl_row_id`
WHERE
`p`.`datatype` = 18
AND ( `t`.`id` IN () )
GROUP BY `cat1`.`name`
ORDER BY `cat1`.`name`; Response: 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 ') )
GROUP BY `cat1`.`name`
ORDER BY `cat1`.`name`' at line 13