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 (45042,17009,17755,45262,37057,45229,6782,28313,30135,30963,17839,44711,5259,18981,44863,17556,44531,3,45043,31354,44836,18185,17114,14622,44869,6875,44865,18446,44873,13988,24441,44856,5410,45177,32454,44853,44765,16935,24412,44689,45180,45051,44671,14402,18719,17981,44884,18572,45421,4686,17092,44878,5993,18648,19057,18996,18650,22509,45346,17756,44861,18900,44687,17237,44854,17848,44837,44849,44775,44855)
Unknown column 'np.person' in 'where clause'