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 (44865,18430,45286,44775,45177,45262,44873,3883,9341,17839,4765,44768,44884,17237,44640,45043,5388,24412,6609,44739,45042,44866,44856,44685,18648,18900,44870,34194,5993,19078,28313,44863,30135,24438,45515,18301,44671,44853,5259,39676,18688,44854,17755,18279,44848,45517,44835,6782,43800,30986,44861,18652,45516,17009,18996,18446,36472,45072,44711,22509,44867,44674,44849,37267,17114,13425,16885,18185,4686,17278)
Unknown column 'np.person' in 'where clause'