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