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 (45561,45042,13922,44863,17839,18353,17657,17114,44867,44856,45051,28313,45515,45286,18900,44765,45518,18430,6782,44870,44768,37267,44854,18996,44853,44849,45262,44640,17848,14402,17009,13,5259,17835,18237,44687,9341,17703,44531,44685,28530,44869,37057,44875,18446,44767,44878,17755,30135,44669,24441,44855,44764,45277,17278,6862,18427,31354,44689,18652,5388,5410,17527,44873,8753,44674,18185,16935,17981,44671)
Unknown column 'np.person' in 'where clause'