WordPress-Datenbank-Fehler: [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` = 'lma-eintrag_single' ) AND ( `t`.`post_status` IN ( 'p' at line 14]SELECT
DISTINCT
`t`.*
FROM `wajhk_posts` AS `t`
LEFT JOIN `wajhk_podsrel` AS `rel_lma_eintrag_id` ON
`rel_lma_eintrag_id`.`field_id` = 342
AND `rel_lma_eintrag_id`.`item_id` = `t`.`ID`
LEFT JOIN `wajhk_posts` AS `lma_eintrag_id` ON
`lma_eintrag_id`.`ID` = `rel_lma_eintrag_id`.`related_item_id`
WHERE ( ( `lma_eintrag_id`.`ID` = ) AND ( `t`.`post_type` = 'lma-eintrag_single' ) AND ( `t`.`post_status` IN ( 'publish' ) ) )
ORDER BY `t`.`menu_order`, `t`.`post_title`, `t`.`post_date`