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 (18427,44884,45421,44866,28313,44863,17981,44674,31354,37057,3883,18446,44711,17278,44868,45517,45561,9341,5388,17756,17351,13922,44856,45051,17904,39676,18794,17527,18353,18894,44745,17556,45286,17703,14622,18650,36472,18652,44766,5259,44640,44894,44865,44853,22509,45516,45515,4765,45567,44861,18279,13988,45262,18719,17009,34194,44765,10402,4686,44768,18996,18185,44671,18172,44845,45180,44767,19057,30135,17492)
Unknown column 'np.person' in 'where clause'