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