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 (45286,31354,19078,45043,45277,18430,44865,44669,17904,9341,44894,44884,18301,17835,17703,18279,45180,18446,44863,44869,17556,28313,44856,17839,44868,18237,17492,18688,18286,17848,18981,17657,44861,44766,24438,44685,18427,44764,30986,17771,18894,44674,5259,44531,44711,5993,44851,43800,45518,17237,45042,13425,14622,37267,8753,14402,10402,18185,18353,45262,5410,45421,45516,44765,18648,13,17114,45515,32454,17527)
Unknown column 'np.person' in 'where clause'