Hoppa till casinon
Database Error; SQL: SELECT
DISTINCT
`t`.*
FROM `wp_posts` AS `t`
LEFT JOIN `wp_podsrel` AS `rel_site` ON
`rel_site`.`field_id` = 22
AND `rel_site`.`item_id` = `t`.`ID`
LEFT JOIN `wp_posts` AS `site` ON
`site`.`ID` = `rel_site`.`related_item_id`
LEFT JOIN `wp_podsrel` AS `rel_site_payment_option` ON
`rel_site_payment_option`.`field_id` = 61
AND `rel_site_payment_option`.`item_id` = `site`.`ID`
LEFT JOIN `wp_posts` AS `site_payment_option` ON
`site_payment_option`.`ID` = `rel_site_payment_option`.`related_item_id`
LEFT JOIN `wp_podsrel` AS `rel_country` ON
`rel_country`.`field_id` = 10471
AND `rel_country`.`item_id` = `t`.`ID`
LEFT JOIN `wp_posts` AS `country` ON
`country`.`ID` = `rel_country`.`related_item_id`
LEFT JOIN `wp_podsrel` AS `rel_country_language` ON
`rel_country_language`.`field_id` = 2099
AND `rel_country_language`.`item_id` = `country`.`ID`
LEFT JOIN `wp_posts` AS `country_language` ON
`country_language`.`ID` = `rel_country_language`.`related_item_id`
LEFT JOIN `wp_postmeta` AS `country_language_language_code` ON
`country_language_language_code`.`meta_key` = 'language_code'
AND `country_language_language_code`.`post_id` = `country_language`.`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_postmeta` AS `site_closed` ON
`site_closed`.`meta_key` = 'closed'
AND `site_closed`.`post_id` = `site`.`ID`
LEFT JOIN `wp_postmeta` AS `site_post_status` ON
`site_post_status`.`meta_key` = 'post_status'
AND `site_post_status`.`post_id` = `site`.`ID`
WHERE ( ( ( `site_payment_option`.`id`= AND `country_language_language_code`.`meta_value` IN ('sv_SE') AND `offer_type`.`meta_value`='' AND `site_closed`.`meta_value` != '1' AND `site`.`post_status`='publish' AND `site`.`id` NOT IN (6532,21348,5780) ) AND `site`.`id` NOT IN (3312,3842,4103,6590,9466,10059,10464,12631,13967,19205,19466,19918,20938,20977,21051,22191,23148,23152,23193,23198,23217,23238,23245,23306,23309,23318,23329,31932,32076,32330,33127,33148,33173,35759,37073,38297,38303,38310,55516,57859,58291,58635,62617,62843,63436,63441,63443) ) AND ( `t`.`post_type` = 'offer' ) )
GROUP BY `site`.`id`
ORDER BY COALESCE((CASE `site`.`ID` WHEN 62883 THEN 1 WHEN 6532 THEN 2 WHEN 40550 THEN 3 WHEN 40527 THEN 4 WHEN 21348 THEN 5 WHEN 25349 THEN 6 WHEN 32784 THEN 7 WHEN 43079 THEN 8 WHEN 37772 THEN 9 WHEN 18873 THEN 10 WHEN 4464 THEN 11 WHEN 32798 THEN 12 WHEN 59558 THEN 13 WHEN 5789 THEN 14 WHEN 5795 THEN 15 WHEN 33082 THEN 16 WHEN 13374 THEN 17 WHEN 15992 THEN 18 WHEN 31811 THEN 19 WHEN 21808 THEN 20 WHEN 21837 THEN 21 WHEN 21822 THEN 22 WHEN 19423 THEN 23 WHEN 18865 THEN 24 WHEN 16591 THEN 25 WHEN 16062 THEN 26 WHEN 10059 THEN 27 WHEN 11371 THEN 28 WHEN 9279 THEN 29 WHEN 5780 THEN 30 WHEN 5792 THEN 31 WHEN 5353 THEN 32 WHEN 4475 THEN 33 WHEN 4471 THEN 34 WHEN 4461 THEN 35 WHEN 4395 THEN 36 WHEN 4348 THEN 37 WHEN 4132 THEN 38 WHEN 11367 THEN 39 WHEN 35516 THEN 40 WHEN 35938 THEN 41 WHEN 35932 THEN 42 WHEN 36997 THEN 43 WHEN 37784 THEN 44 WHEN 37776 THEN 45 WHEN 37766 THEN 46 WHEN 37093 THEN 47 WHEN 37090 THEN 48 WHEN 37087 THEN 49 WHEN 37073 THEN 50 WHEN 37070 THEN 51 WHEN 37068 THEN 52 WHEN 4595 THEN 53 ELSE NULL END), `site`.`menu_order`), `t`.`menu_order`, `t`.`post_title`, `t`.`post_date`
LIMIT 0, 21; Response: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'AND `country_language_language_code`.`meta_value` IN ('sv_SE') AND `offer_typ...' at line 58