select DISTINCT product.ID,product.post_title,product.type_id
from wp_terms as terms
left join wp_term_relationships as term_rel
on terms.term_id = term_rel.term_taxonomy_id and terms.term_id in (119,120)
left join wp_posts as product
on product.ID = term_rel.object_id
where product.post_type = 'product' and product.post_status = 'publish' and ID <> 4147
order by FIELD(terms.term_id,119,120)
limit 0,10
قالب طرح لایه باز بنر سایت فروشگاهی 1 فایل PSD | با موضوع بلک فرایدی – فروشگاه لوازم جانبی
با خرید اشتراک ادمین کمک ، 90% در هزینه های خود صرفه جویی کنید