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 (45421,45042,18042,44764,44775,13988,44765,18446,24411,13,6875,44687,17756,18648,45346,17335,13922,5259,24441,9341,45180,16935,44854,18430,22509,8753,18650,18185,28313,17981,18981,45286,44671,44851,4686,18652,17755,18900,44865,45072,30986,17601,18794,44766,18996,28530,44894,45567,44767,44640,3883,44853,4765,44858,19057,17237,6609,45229,18572,34194,44768,44878,31354,18286,45515,37267,44848,24412,16885,18719)
Unknown column 'np.person' in 'where clause'