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 (44775,44671,19078,44845,45561,44739,30135,6782,17601,17756,18185,30963,17755,17237,10402,24438,34194,45277,44687,44768,6609,4765,4686,14402,44863,39676,44867,45515,44765,30986,18042,18652,45517,6862,36472,18688,45421,37267,13,45262,45177,45567,45286,17556,18172,13425,18794,44848,18301,18648,32454,18279,5993,44669,17492,45042,3883,24441,3,28313,19057,44870,44894,37057,18430,31354,44685,44767,44856,44836)
Unknown column 'np.person' in 'where clause'