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