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,44775,6782,44867,44870,3883,17237,24441,17335,37057,13425,17848,18572,17351,14402,4765,17839,17756,17527,30963,44884,3,45229,44745,6875,16935,44856,45043,6609,45072,18185,31354,24412,44878,45516,44766,17771,18353,17981,45421,45262,8753,44767,19057,44711,17009,44837,18042,45277,44689,18894,44669,4686,45346,18648,44836,13988,44851,18900,39676,45567,34194,45561,24411,22509,44764,44858,30986,44869,18279)
Unknown column 'np.person' in 'where clause'