Tengo esta sentencia:
Code: Select all
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
Code: Select all
#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
Muchas gracias
Un saludo