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 (4686,45177,18688,45567,18042,22509,44855,44867,24412,17835,45515,17278,18286,6782,3,5993,17755,18279,17527,18430,18794,13988,18172,37267,44849,19057,34194,44745,44856,24438,44851,17492,17092,17351,17335,44854,45517,18996,45042,18894,44858,18719,45072,44884,45180,44837,18353,17703,45421,45229,44689,44853,44873,44875,17848,44868,24441,44768,45262,6609,44861,24411,9341,17556,44894,44674,44775,44531,32454,17839)
Unknown column 'np.person' in 'where clause'