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