Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON = (SELECT FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE = AND nyc.category = 310 AND nyp.person = np.person AND = AND = AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = AND nc.category = 310 AND = AND np.person = AND IN (44863,17904,5993,18430,44764,44689,28530,44866,17351,36472,6875,16935,44836,18996,32454,44856,18185,30135,44766,44849,44867,16885,18353,45072,44878,44875,18286,37057,4765,6609,13922,18446,44765,24441,17601,17771,18648,44671,17839,45346,6782,19057,10402,3,17092,45042,18301,17114,44869,44845,28313,13988,18042,34194,45518,17009,30986,45561,45517,44865,44870,45277,44669,45180,44767,17835,14622,44853,17848,44687)
Unknown column 'np.person' in 'where clause'