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 ( 7583,7585,7586,7588,7589,7593,7595,7597,7600,7606,7615,7616,7617,7620,7623,7635,7642,7643,7644,7646,7647,7657,7659,7673,7703,7717,7722,7726,7730,7743,7744,7745,7746,7747,7751,7762,7775,7781,7786,7788,7792,7798 ) ORDER BY ball_all DESC LIMIT ,10