
Müəllimlər
SELECT p.`id`, p.`lang`, p.`o_image`, p.`max_image`, p.`min_image`, p.`o_video_link`, p.`g_video_link`, p.`v_max_image`, p.`v_min_image`, p.`s_video`, p.`news_ticker`, p.`i_news`, p.`useful`, p.`multi_images`, p.`google_map`, p.`views`, p.`visible`, p.`date_`, p.`time_`, p.`datetime`,p.`u_datetime`, tc.id as tc_id,tc.title,tc.p_id,tc.`table`,tc.lang,tc.description,tc.text, pg.`p_id` AS pg_p_id, pg.`url` AS pg_url, pg.`table`, pg.`type`, pg.`template`, pm.p_id AS pm_id,pm.key AS meta_keys,pm.value FROM post p LEFT JOIN text_content tc ON tc.p_id=p.id LEFT JOIN pages pg ON pg.p_id=p.id LEFT JOIN post_meta pm ON pm.p_id=p.id WHERE tc.lang='az' AND pm.`key`='news' AND pm.`value`='1' AND p.`visible`='1' GROUP BY p.id ORDER BY p.date_ DESC LIMIT 0,10
SELECT p.`id`, p.`lang`, p.`o_image`, p.`max_image`, p.`min_image`, p.`o_video_link`, p.`g_video_link`, p.`v_max_image`, p.`v_min_image`, p.`s_video`, p.`news_ticker`, p.`i_news`, p.`useful`, p.`multi_images`, p.`google_map`, p.`views`, p.`visible`, p.`date_`, p.`time_`, p.`datetime`,p.`u_datetime`, tc.id as tc_id,tc.title,tc.p_id,tc.`table`,tc.lang,tc.description,tc.text, pg.`p_id` AS pg_p_id, pg.`url` AS pg_url, pg.`table`, pg.`type`, pg.`template`, pm.p_id AS pm_id,pm.key AS meta_keys,pm.value FROM post p LEFT JOIN text_content tc ON tc.p_id=p.id LEFT JOIN pages pg ON pg.p_id=p.id LEFT JOIN post_meta pm ON pm.p_id=p.id WHERE tc.lang='az' AND pm.`key`='events' AND pm.`value`='1' AND p.`visible`='1' GROUP BY p.id ORDER BY p.date_ DESC LIMIT 0,10