I\'m still learning PDO so I might of missed something but basically I\'m trying to insert a row into a table and then select the generated id.
I\'m not sure if it l
I'm pretty sure the mysql driver for PDO (maybe mysql itself?) does not support multi-query prepared statements.
Instead of SELECT LAST_INSERT_ID() in your query, use Conexion::$cn->lastInsertId() after your $query->execute()
SELECT LAST_INSERT_ID()
Conexion::$cn->lastInsertId()
$query->execute()