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 (44711,45515,18430,14402,28530,45277,17904,44894,6782,28313,5410,18648,44868,18172,18353,5259,44837,31354,18688,17756,18719,44687,45051,17981,18981,30963,30135,22509,17237,44739,45286,36472,17351,17839,24411,24441,17278,44531,17527,45177,13988,45516,18572,45518,17703,45042,6862,45043,8753,44766,18652,6609,18794,18446,39676,17009,44884,44863,13,16885,3,44765,6875,4686,17492,17601,16935,18042,44851,44867)
Unknown column 'np.person' in 'where clause'