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 (22509,17527,13988,3883,44858,17009,36472,44766,44851,17556,17835,16935,44764,17756,17771,45515,17904,6609,44711,45518,45277,44687,5259,19078,44837,17237,18981,32454,19057,17848,17703,14622,18286,17351,5388,44767,9341,45042,6875,44674,18042,18648,45561,44878,18185,28530,44875,16885,44856,5410,18894,44853,5993,4765,30135,44685,31354,45177,37057,13922,18279,45346,44867,44865,18650,44870,18446,44894,34194,17092)
Unknown column 'np.person' in 'where clause'