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