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 (45518,17351,3883,32454,24411,6609,8753,17009,17848,44853,22509,44854,44836,45516,44851,44845,44767,17756,17335,28313,18237,18172,45346,13922,18286,44855,43800,18719,45072,16885,17527,31354,37267,44669,44863,14402,13,5410,19078,18042,44674,17237,18794,18981,13988,18430,44762,24441,45229,44894,24438,45286,44856,45042,13425,44866,44868,18427,45262,5993,18688,10402,18572,36472,44775,44861,17835,17492,44870,5259)
Unknown column 'np.person' in 'where clause'