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