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 (44689,44854,18185,45180,43800,17771,17335,45517,18446,5993,18572,32454,44866,30963,24438,6862,44764,31354,17657,10402,16935,18652,18427,45072,44745,17848,16885,44674,44837,44868,17492,44853,17237,44711,36472,9341,44894,17755,13425,44671,24441,18286,13,45229,44865,45051,44531,30986,18900,17904,17527,28313,17556,17756,17351,3,17009,14402,17981,37057,44861,6875,44775,45346,44884,44765,18430,18719,44875,18794)
Unknown column 'np.person' in 'where clause'