SELECT mtl_prereg.users.id AS id, mtl_prereg.users._name AS _name, mtl_prereg.users._surname AS _surname, mtl_prereg.users._email AS _email FROM mtl_prereg.users WHERE mtl_prereg.users.id = --- 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 '' at line 1 ---