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 (45262,39676,45072,45421,44870,44766,45567,17009,16935,18279,17351,18900,9341,45518,10402,45286,44848,43800,30963,44849,44836,44863,5259,45561,44851,31354,45517,17237,18652,18286,4686,45277,3,18719,6782,18172,44745,44845,24412,17657,45042,17835,44854,4765,44865,34194,45043,18981,44837,44765,6875,44866,45051,16885,19057,44711,45515,18446,44868,44669,28313,37057,44856,18353,6862,44835,36472,17904,17755,44768)
Unknown column 'np.person' in 'where clause'