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 (19078,18301,16885,44685,17839,17335,30963,17351,44865,3,17657,10402,8753,44884,5388,45277,44849,44866,34194,5259,45516,6609,18353,44853,44531,18652,44851,6782,44767,18981,44766,17835,44687,19057,44854,45515,44765,43800,17848,18894,17237,44640,45051,45072,28313,44870,44848,18688,18446,44867,31354,44764,18996,17278,37057,45180,44868,14402,45286,18279,45229,17009,4686,44878,3883,18185,36472,18430,44745,37267)
Unknown column 'np.person' in 'where clause'