Strict Standards: Only variables should be passed by reference in /var/www/newistoria/data/www/2mir-istorii.ru/engine/modules/catalog/functions.php on line 123 SELECT p.id, p.autor, p.date, p.short_story, CHAR_LENGTH(p.full_story) as full_story, p.xfields, p.title, p.category, p.alt_name, p.comm_num, p.allow_comm, p.fixed, p.tags, e.news_read, e.allow_rate, e.rating, e.vote_num, e.votes, e.view_edit, e.editdate, e.editor, e.reason, ( ( rating1+rating2+rating3+rating ) / 4 ) as ball_all FROM dle_post p LEFT JOIN dle_post_extras e ON (p.id=e.news_id) WHERE approve=1 and p.`id` in ( 7584,7599,7601,7604,7609,7610,7614,7619,7626,7628,7631,7633,7638,7651,7653,7655,7658,7665,7667,7670,7680,7684,7693,7704,7724,7729,7734,7737,7738,7740,7741,7742,7748,7750,7752,7753,7754,7755,7768,7769,7770,7774,7776,7777,7778,7780,7783,7787,7793,7797 ) ORDER BY ball_all DESC LIMIT ,10