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 (16885,45042,44836,45516,44767,45051,44531,44765,37267,45561,30963,17601,17756,9341,18279,18042,45229,18301,44867,31354,44878,44851,18719,18185,6875,44764,44837,22509,17278,18652,17848,44866,18446,44687,45421,4686,44853,17835,5993,13922,17527,45346,45177,6609,13988,18688,6862,44674,44884,44858,44775,14622,17556,10402,45072,18648,17904,24438,8753,16935,17771,18172,18981,18237,30986,3883,13,3,17839,44863)
Unknown column 'np.person' in 'where clause'