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 (22509,18572,45421,6862,44762,18794,5259,16935,17848,13425,17114,44878,18427,28530,44689,18185,14402,44687,45277,8753,5410,17755,18172,18301,18894,44775,6782,44869,19078,18688,18430,17703,17335,34194,44861,24411,30135,44865,18981,44765,44856,44766,44873,44739,45517,36472,24441,44884,31354,45346,44711,45072,45042,9341,10402,17237,30986,13,3883,4765,44671,37057,13988,3,18648,44685,44855,44854,32454,17904)
Unknown column 'np.person' in 'where clause'