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 (17839,6875,43800,14622,5993,44674,44775,44837,17848,44767,44766,44689,18446,4686,17756,17092,45286,17771,28530,45421,45262,44869,44875,5259,45180,17601,17114,44671,44836,18900,18794,3,18981,44870,45042,13988,18996,31354,44845,44866,10402,13,24438,45567,34194,44853,44867,30986,18894,5388,6609,17657,18237,44739,45517,17335,24411,45051,45229,44856,44861,16885,4765,44745,24441,16935,18572,37267,18688,45043)
Unknown column 'np.person' in 'where clause'