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 (17492,5259,45346,24441,18996,18572,30135,6782,24438,14402,44851,17756,18430,18894,18648,5993,44687,17703,18427,3,44689,44848,45515,16885,18981,31354,30963,36472,44868,44869,19078,28313,44858,44836,44531,45042,45516,17335,13988,44764,44875,44837,44762,17556,44835,45051,18172,45561,44674,37267,18185,45262,5388,18650,17904,17237,18279,44849,32454,44878,6609,44854,44685,4765,43800,30986,45229,44884,5410,28530)
Unknown column 'np.person' in 'where clause'