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 (24441,44855,44687,18237,17657,45262,44849,17351,44875,44835,6862,44866,44836,45517,18353,4686,17703,17904,45042,44745,45072,17092,44851,44669,30986,44861,5259,45229,45518,44867,18185,45515,45561,17756,18572,37057,13425,17771,3,44775,16935,3883,36472,13988,13922,18427,18648,19078,18996,24438,44689,17335,6782,45346,44863,10402,44765,44764,32454,18981,5388,45043,18042,45516,18894,44865,17835,17755,5410,18688)
Unknown column 'np.person' in 'where clause'