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 (44674,13,17351,44855,17092,36472,44858,45277,17114,18981,18172,10402,44739,44685,44766,18430,45561,18996,44867,16885,44851,18900,44687,5259,31354,18446,44869,6862,30963,44711,18572,18353,44853,17278,44837,19057,44671,9341,44865,6609,17755,17703,17657,18286,17904,5388,44767,44894,37267,14402,44845,45043,18185,17009,45567,45517,17335,17981,44870,22509,3883,17601,17756,19078,6875,45229,45072,18719,44873,44762)
Unknown column 'np.person' in 'where clause'