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