Database Error; SQL: SELECT
DISTINCT
`t`.*
FROM `wp_posts` AS `t`
WHERE ( ( t.ID = ) AND ( `t`.`post_type` = 'galeria_zdjec' ) AND ( `t`.`post_status` IN ( 'publish' ) ) )
ORDER BY t.ID desc, `t`.`menu_order`, `t`.`post_title`, `t`.`post_date`; 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` = 'galeria_zdjec' ) AND ( `t`.`post_status` IN ( 'publis' at line 7