Database Error; SQL: SELECT
DISTINCT
`t`.*, `d`.*
FROM `wp_posts` AS `t`
LEFT JOIN `wp_podsrel` AS `rel_activities` ON
`rel_activities`.`field_id` = 2055
AND `rel_activities`.`item_id` = `t`.`ID`
LEFT JOIN `wp_terms` AS `activities` ON
`activities`.`term_id` = `rel_activities`.`related_item_id`
LEFT JOIN `wp_pods_company` AS `d` ON `d`.`id` = `t`.`ID`
WHERE ( ( (`activities`.`slug` = 'alfombras-y-moquetas' or `activities`.`slug` = '') and active=1 and t.post_status='Publish' and () ) AND ( `t`.`post_type` = "company" ) )
ORDER BY premium DESC, post_title ASC, `t`.`menu_order`, `t`.`post_title`, `t`.`post_date`
LIMIT 0, 20; 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`.`post_type` = "company" ) )
' at line 15