Tengo este error, el problema esque no veo ningún error y antes hace un ratillo funcionaba perfectamente..
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 t.stick = '1'
ORDER BY t.stick,m.ident DESC'
$resultado = db_query("
SELECT t.tema, t.stick, m.ident, m.id
FROM {$db_prefix}lostemas AS t
LEFT JOIN {$db_prefix}mensajes AS m ON (t.tema = m.id)
WHERE m.ident = '$vlafa' AND t.stick = '1'
ORDER BY t.stick,m.ident DESC");