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 (45043,16935,13922,44855,36472,17601,44854,44853,17839,18430,5388,18286,44878,34194,6875,44869,18301,18572,19078,18688,44768,8753,17703,28530,17835,32454,17527,44884,44868,17237,6862,44848,9341,18650,44766,6609,44669,18172,18900,17114,18427,45516,30986,44836,18652,44711,30135,14622,18237,13,30963,45561,45518,18981,45180,45042,3,13988,5259,22509,44671,44851,24438,44531,17335,44687,17904,18719,28313,18353)
Unknown column 'np.person' in 'where clause'