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 (18981,45561,17527,24441,6782,44689,44669,17114,13988,44835,31354,18353,44861,45042,18794,18172,45286,44764,30135,45051,17492,34194,44894,44745,5388,44878,44767,17278,44858,17237,44873,17703,17335,45043,14402,44863,45516,18688,10402,44640,18237,17756,44531,30963,18900,39676,44845,18427,18650,18652,17848,44867,5410,44674,44868,4686,44765,18042,44685,30986,44836,18279,44855,44884,44711,44866,44848,18430,28530,18996)
Unknown column 'np.person' in 'where clause'