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