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 (6875,5410,30986,44531,44884,18427,17981,45567,17904,44762,19078,18237,44865,44764,18894,44853,39676,44856,18719,44855,30963,24411,44867,44873,17335,44875,17009,45262,45180,44768,17848,44766,44845,3883,44767,43800,22509,44765,44711,44640,18900,45515,13922,34194,45042,44836,17756,45229,24412,44671,13,4686,18652,45517,18301,44689,18430,18572,37057,8753,5993,44894,19057,6862,18286,44868,18996,17755,17657,44866)
Unknown column 'np.person' in 'where clause'