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