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 (44894,17009,17835,45518,31354,6862,45180,44775,17351,6875,18652,18279,45421,44835,44711,30963,44870,44853,45286,18794,24412,17092,44837,44873,16935,45515,45042,18237,45516,45346,17601,45277,44531,5388,44767,44765,44878,6609,24441,18719,30135,44764,44855,45072,45043,18301,18430,6782,44854,24438,44674,17335,18996,44766,44768,45517,17756,5410,44762,4765,18688,44845,34194,10402,44836,18353,44669,18446,17839,32454)
Unknown column 'np.person' in 'where clause'