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 (17657,44875,45277,18652,44671,44767,44855,14402,45043,18301,37057,30963,17756,32454,14622,10402,17335,17009,3,6875,18353,36472,44867,18237,45421,30986,44845,24441,44765,44739,18446,17848,13922,45177,18981,19078,18688,45518,17755,18900,44674,19057,44775,6609,34194,44878,16935,17904,30135,44669,44894,9341,45515,13425,17601,45051,44764,24438,8753,28530,44868,44836,17092,44851,17237,17527,17114,44711,44768,6862)
Unknown column 'np.person' in 'where clause'