Database Error; SQL: SELECT DISTINCT `t`.* FROM `wp183_pods_envirocolorways` AS `t` LEFT JOIN `wp183_podsrel` AS `rel_design` ON `rel_design`.`field_id` = 38 AND `rel_design`.`item_id` = `t`.`id` LEFT JOIN `wp183_pods_envirodesigns` AS `design` ON `design`.`id` = `rel_design`.`related_item_id` WHERE ( `design`.`id` = and t.status = 'active' ) ORDER BY, `t`.`name`, `t`.`id`; 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 'and t.status = 'active' ) ORDE' at line 14