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 (13922,3883,45421,43800,18430,44867,17556,45518,44837,18688,8753,44866,18894,22509,30135,34194,18981,3,44687,17237,44855,18572,17756,45042,13988,5388,18353,44863,44851,5259,44689,17601,18172,44531,44669,44869,17335,44853,44775,31354,44856,44875,18996,44873,18427,45515,18446,44858,44870,45567,6862,17839,17278,17835,6875,17114,6609,18648,37267,5993,18719,17848,45043,17703,44767,28313,44685,24412,36472,4765)
Unknown column 'np.person' in 'where clause'