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 (44768,30135,18185,45516,4765,17351,44861,45346,24441,17848,44866,17601,18652,44870,44856,18301,18042,13988,22509,45421,44764,44766,37057,18427,18279,45043,32454,5259,3,8753,17755,6609,5388,45561,16885,45277,19057,44835,28313,44894,18996,18572,28530,10402,3883,17981,44869,17527,36472,17492,44836,17839,17335,17756,18648,44671,44685,44865,44858,6782,44848,45180,18172,18894,30986,44845,44711,45515,45286,45072)
Unknown column 'np.person' in 'where clause'