Database Error; SQL: SELECT
DISTINCT
`t`.*
FROM `wp_posts` AS `t`
LEFT JOIN `wp_postmeta` AS `deposit_bonus` ON
`deposit_bonus`.`meta_key` = 'deposit_bonus'
AND `deposit_bonus`.`post_id` = `t`.`ID`
LEFT JOIN `wp_postmeta` AS `offer_type` ON
`offer_type`.`meta_key` = 'offer_type'
AND `offer_type`.`post_id` = `t`.`ID`
LEFT JOIN `wp_podsrel` AS `rel_site` ON
`rel_site`.`field_id` = 14
AND `rel_site`.`item_id` = `t`.`ID`
LEFT JOIN `wp_posts` AS `site` ON
`site`.`ID` = `rel_site`.`related_item_id`
WHERE ( ( CAST(`deposit_bonus`.`meta_value` as SIGNED) = 160 AND `offer_type`.`meta_value` IN ('','alt') AND `site`.`id`!='' AND `offer`.`post_status`='publish' ) AND ( `t`.`post_type` = 'offer' ) )
GROUP BY t.id
ORDER BY `site`.`menu_order`, `t`.`menu_order`, `t`.`post_title`, `t`.`post_date`
LIMIT 0, 9999; Response: Unknown column 'offer.post_status' in 'where clause'