Error in get_cats
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 '' at line 4
Query was:
SELECT ncis_series_cats.cat_id, ncis_cats.cat_title
FROM ncis_series_cats
LEFT JOIN ncis_cats on ncis_cats.id = ncis_series_cats.cat_id
WHERE ncis_series_cats.series_id =