Unknown column 'public' in 'where clause': SELECT * FROM reservas WHERE propiedad_fk = public and session_id = "g6enmqc59e8iju9s3je9ud9g32"