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 (44867,28530,6609,17009,17278,45515,30963,17756,18172,18981,44835,17981,44884,18996,37267,17839,44765,17848,44845,44870,45518,13988,17335,17835,44855,44858,18719,18688,18185,3,44854,34194,44687,45042,44762,17755,45072,44768,45262,45346,19057,28313,18794,30135,18237,44873,32454,45051,5388,17237,24411,18652,44685,19078,45177,45180,44745,17527,44531,44711,14402,44861,45567,13,13425,44836,44848,4686,18279,45516)
Unknown column 'np.person' in 'where clause'