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