FSB2 :: Erreur
Une erreur a été rencontrée durant l'éxécution du script. L'erreur rencontrée est :
error_sql :: 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 'AND p.f_id IN (11) ORDER BY t.t_last_p_time DESC, p.p_time LIMIT 1' at line 7
-----
SELECT p.*, t.*, u.*
FROM fsb2_posts p
INNER JOIN fsb2_topics t
ON t.t_id = p.t_id
INNER JOIN fsb2_users u
ON p.u_id = u.u_id
WHERE 1 = 1 and t_type = 1 and AND p.f_id IN (11) ORDER BY t.t_last_p_time DESC, p.p_time LIMIT 1
à la ligne
434 du fichier
/web/cedricbillard/www/fsb2/sdk.phpVoici la zone où se situe l'erreur dans le script :
Ligne 427 : ON p.u_id = u.u_id
Ligne 428 : WHERE 1 = 1 and t_type = 1 and '
Ligne 429 : . (($forums) ? ' AND p.f_id IN (' . implode(', ', $forums) . ') ' : '')
Ligne 430 : . (($gbt) ? ' GROUP BY p.t_id' : '')
Ligne 431 : . (($order) ? ' ORDER BY ' . $order : '')
Ligne 432 : . (($total > 0) ? ' LIMIT ' . $total : '');
Ligne 433 : $result = Fsb::$db->query($sql);
Ligne 434 : $compteur = mysql_num_rows($result);
Ligne 435 : while ($row = Fsb::$db->row($result))
Ligne 436 : {
Ligne 437 : $parser->parse_html = FALSE;
Ligne 438 :
Ligne 439 : // Informations sur le posteur du message
Ligne 440 :
Ligne 441 : $row['u_avatar'] = User::get_avatar($row['u_avatar'], $row['u_avatar_method'], $row['u_can_use_avatar']);
Trace des fonctions / méthodes appelées :
Méthode : Fsb_sdk->get_posts()
Fichier : essaifsb2bis.php
Ligne : 82
Méthode : Dbal->query()
Fichier : sdk.php
Ligne : 434
Méthode : Dbal_mysql->_query()
Fichier : main/class/dbal/dbal.php
Ligne : 150
Fonction : trigger_error()
Fichier : main/class/dbal/dbal_mysql.php
Ligne : 71