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 (30135,17848,44875,45567,18172,3,18719,4686,9341,6609,44687,17755,18446,14622,8753,6782,17703,24412,45042,44869,4765,37267,16885,18981,44894,45277,14402,44856,18042,36472,44739,44685,45561,44855,18279,18572,30963,44531,17351,18650,18286,18427,44884,28313,45229,37057,18794,17904,5993,44849,45072,44873,17237,44745,13988,44671,18996,45051,44866,44861,45516,17492,44858,17335,22509,44845,44837,44764,5410,18353)
Unknown column 'np.person' in 'where clause'