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 (17771,44745,18652,6862,19057,44845,18688,45516,18185,30963,18301,17335,45229,30135,17703,18042,45346,37057,17492,44837,17278,18172,5259,22509,3883,45051,17556,44689,44711,45043,44767,13425,39676,44894,44835,44867,16935,45177,17835,17904,44858,44873,44868,14622,17351,30986,14402,44866,44870,4686,18430,45277,44836,18286,36472,44766,44739,4765,18894,18279,45515,24438,24441,45561,44640,44865,32454,45042,17092,19078)
Unknown column 'np.person' in 'where clause'