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 (28313,44767,44868,18648,44866,18719,17009,18894,45229,18237,17092,17114,45517,44851,18279,30986,14622,4686,44768,44854,45051,17237,44836,18353,13922,36472,44674,44884,44870,18042,45346,24411,44856,37057,44531,24441,44865,17755,17981,30963,45072,44853,28530,22509,45177,44671,45516,6782,18301,17756,44873,18446,17492,24438,45518,19057,45043,5410,44669,37267,30135,17848,17839,44764,45515,34194,18185,17351,44875,44685)
Unknown column 'np.person' in 'where clause'