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 (39676,13922,44854,44768,44867,44873,3,17848,44689,24411,44845,18286,17492,44765,44856,18430,18996,18572,37267,44687,14622,45277,19078,18446,44775,8753,44762,44835,22509,30135,18172,4765,6875,18652,44671,34194,45229,17771,44875,44674,44861,45518,30986,5259,45561,45180,45421,45043,28313,18794,44531,44764,44837,45286,17756,17114,44711,45516,17904,44836,17335,18185,31354,18900,16935,4686,18648,18688,18427,44767)
Unknown column 'np.person' in 'where clause'