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 (18794,44867,45421,17755,17981,18279,44762,34194,44739,45346,44858,45262,45177,19057,45180,18996,17835,44685,19078,18648,18981,44845,18353,30963,17237,37057,17657,13,28530,17335,24412,13425,45561,3,44870,17848,18042,17351,24438,22509,9341,44855,18719,44854,44836,44640,10402,17756,44861,45229,6782,44848,45277,3883,45286,44711,36472,44849,17278,6875,4686,5410,44669,17771,44866,16885,44837,18172,18900,18286)
Unknown column 'np.person' in 'where clause'