вопрос
SQL query:
Выбивает иногда такую ошибку, в чем дело понять не могу
Привожу строки 735, 736, 737
MySQL error in file: /engine/modules/show.full.php at line 736
Error Number: 1064
The Error returned was:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY id DESC' at line 1
Error Number: 1064
The Error returned was:
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ') ORDER BY id DESC' at line 1
SQL query:
SELECT id, date, short_story, xfields, title, category, alt_name FROM dle_post WHERE id IN(12380590,12381280,795141,12375605,12393976,12375556,12372564,12382067,12352284,12381997,12394012,12352459,12381058,736690,12394122,12380981,12372041,12380749,12365119,12380794,12375193,12373200,12375415,12380983,12373501,12375324,12375553,12380208,805390,) ORDER BY id DESC
Выбивает иногда такую ошибку, в чем дело понять не могу
Привожу строки 735, 736, 737
if ( $row['related_ids'] ) {
$db->query( "SELECT id, date, short_story, xfields, title, category, alt_name FROM " . PREFIX . "_post WHERE id IN({$row['related_ids']}) ORDER BY id DESC");
$first_show = false;