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