SELECT ID, post_content FROM wp_hej_posts, wp_hej_postmeta WHERE ID = post_id AND post_status = 'publish' AND meta_key = 'ts-ads-format' AND meta_value IN ('1143x140') ORDER BY RAND()
a:1:{s:6:"format";s:7:"768x475";}
SELECT ID, post_content FROM wp_hej_posts, wp_hej_postmeta WHERE ID = post_id AND post_status = 'publish' AND meta_key = 'ts-ads-format' AND meta_value IN ('768x475') AND ID NOT IN (2106) ORDER BY RAND()