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 (6609,5388,44671,18286,44835,13425,44765,18719,6782,3883,18996,44685,44766,13988,45518,17527,44878,30963,44875,17556,18794,17839,44768,18172,24412,18279,44837,5410,45177,44873,44858,45515,18688,37267,44531,24441,45567,5993,45180,34194,44745,45229,36472,8753,44863,17835,30135,44870,44866,44856,18652,17657,44687,6862,45262,44767,18981,17092,45277,37057,17755,44884,45072,44711,17601,18185,18042,9341,44845,39676)
Unknown column 'np.person' in 'where clause'