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