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 (44689,18353,44869,44766,44856,18981,45516,37267,17335,18430,14402,8753,45517,44873,44762,44687,18648,24411,44849,44745,18996,44884,45518,17556,18446,44669,44865,44878,44866,24438,18279,45072,5259,18237,18794,4765,45286,28313,9341,17904,39676,44858,43800,3,17351,5388,18688,18286,45051,13425,44851,36472,30986,44837,28530,17755,44861,44674,45421,44855,45567,45346,13988,19057,24412,3883,18427,30963,18652,44775)
Unknown column 'np.person' in 'where clause'