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 (44674,44855,44766,18650,17527,17351,44854,45517,30963,18353,16935,14402,44853,44764,18172,36472,44884,43800,44851,17556,3883,17755,44869,17092,19057,34194,24438,4686,17835,17703,18042,17904,45277,19078,45177,45286,17756,44870,44861,45567,44873,17657,30135,18996,18572,44669,22509,45072,28313,18286,44868,24411,5410,44845,44767,17237,17492,37057,17981,45262,28530,24441,17601,44689,18719,44863,37267,18652,32454,14622)
Unknown column 'np.person' in 'where clause'