Tengo esta sentencia:
- Code: Select all Expand view
- SELECT name,
nacimiento,
saneamiento,
notas,
id
FROM
device AS cer
INNER JOIN
userId,
deviceId
FROM
user_device AS dev ON cer.id = dev.userId
WHERE
cer.id = "1" LIMIT 0, 25
Con MariaDB, soy incapaz de que se la trague, dándome este error:
- Code: Select all Expand view
- #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'FROM
user_device AS dev ON cer.id = dev.userId
WHERE
cer.id = "1" LIMIT 0' at line 11
¿Alguna sugerencia?
Muchas gracias
Un saludo