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