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 (10402,5993,13425,13988,17556,17848,17114,17092,45043,44531,17771,18237,18185,18688,17351,18572,44671,18894,14622,45277,44765,45051,44875,17278,30963,45516,45177,13,6862,32454,44711,34194,24412,3883,28313,18719,17237,44764,18996,18427,44867,37267,44869,17703,44865,17981,5388,39676,18652,18981,45561,44854,45229,44855,17755,44685,45346,44858,44640,4765,4686,44674,44870,18286,18648,17009,6609,44745,17835,24438)
Unknown column 'np.person' in 'where clause'