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 (18042,5259,44765,18794,18301,44867,18719,16935,44875,44767,44764,44854,17703,18286,13988,44849,44685,44853,45229,24412,28313,28530,17351,36472,44863,44851,44768,37267,17527,44865,6782,18996,6862,17756,17771,10402,44845,17009,24411,45180,44671,6609,18353,44856,17092,45286,44894,44848,32454,17848,18652,18572,45561,3,17839,44858,44669,44868,17601,17981,37057,45277,18688,18650,44689,39676,31354,18427,45072,45051)
Unknown column 'np.person' in 'where clause'