Ошибка базы данных WordPress: [Unknown column 'topad' in 'order clause']
(SELECT wp_posts.ID, wp_posts.post_author, FROM_UNIXTIME(1544822069+FLOOR(RAND()*31536000)) AS post_date, wp_posts.post_date_gmt, wp_posts.post_content, wp_posts.post_title, wp_posts.post_excerpt, wp_posts.post_status, wp_posts.comment_status, wp_posts.ping_status, wp_posts.post_password, wp_posts.post_name, wp_posts.to_ping, wp_posts.pinged, wp_posts.post_modified, wp_posts.post_modified_gmt, wp_posts.post_content_filtered, wp_posts.post_parent, wp_posts.guid, wp_posts.menu_order, wp_posts.post_type, wp_posts.post_mime_type, wp_posts.comment_count , adverts.*, IF( sale_price > 0, IF( currency = 'EUR', sale_price * 1.4, IF( currency = 'RUB', sale_price * 0.015, sale_price)), IF( currency = 'EUR', price * 1.4, IF( currency = 'RUB', price * 0.015, price)) ) AS sort_price FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_adifier_advert_data AS adverts ON wp_posts.ID = adverts.post_id WHERE 1=1 AND ( ( wp_postmeta.meta_key = '_cli_cookie_sensitivity' AND wp_postmeta.meta_value = 'non-necessary' ) ) AND wp_posts.post_type = 'cookielawinfo' AND ((wp_posts.post_status = 'publish')) AND wp_posts.ID IN (1873) AND adverts.expire > 1631949045 AND adverts.sold = 0 GROUP BY wp_posts.ID ) UNION ALL (SELECT wp_posts.*, adverts.*, IF( sale_price > 0, IF( currency = 'EUR', sale_price * 1.4, IF( currency = 'RUB', sale_price * 0.015, sale_price)), IF( currency = 'EUR', price * 1.4, IF( currency = 'RUB', price * 0.015, price)) ) AS sort_price FROM wp_posts INNER JOIN wp_postmeta ON ( wp_posts.ID = wp_postmeta.post_id ) INNER JOIN wp_adifier_advert_data AS adverts ON wp_posts.ID = adverts.post_id WHERE 1=1 AND ( ( wp_postmeta.meta_key = '_cli_cookie_sensitivity' AND wp_postmeta.meta_value = 'non-necessary' ) ) AND wp_posts.post_type = 'cookielawinfo' AND ((wp_posts.post_status = 'publish')) AND adverts.expire > 1631949045 AND adverts.sold = 0 GROUP BY wp_posts.ID ) ORDER BY topad DESC, post_date DESC LIMIT 0, 12

Фильтровать объявления
error: Content is protected !!