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 (30963,44837,44711,17092,9341,45262,45567,18648,17237,44875,17756,18446,45286,6609,44867,24412,17009,18794,44669,5410,36472,6875,44878,17848,17278,24438,18286,44848,18650,18185,16935,17335,28313,44768,37057,44869,44849,22509,45043,45180,3883,13425,44866,34194,10402,44674,5259,6862,44685,44870,18996,14622,45229,45072,44766,16885,24441,44775,44854,44640,6782,43800,44858,44863,44767,17703,44853,19078,24411,17981)
Unknown column 'np.person' in 'where clause'