Database error: Invalid SQL: SELECT e.* FROM UPI_Events AS e WHERE (e.status = '1' OR e.status = '2') AND UNIX_TIMESTAMP(e.endtime) >= UNIX_TIMESTAMP(NOW()) AND p.id IN (SELECT dataid FROM UPI_PeopleRel WHERE datatype = '2' AND pid = '14')
MySQL Error: 1054 (Unknown column 'p.id' in 'IN/ALL/ANY subquery')
Session halted.