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 (18286,44739,8753,17981,44861,3,6782,18981,22509,17351,14402,18446,44674,45051,19057,45262,17278,44685,17755,44866,44873,13988,45043,30986,18430,34194,6609,44855,37267,44836,44865,37057,45072,44884,17009,30963,45229,31354,18719,44762,5993,44765,4686,18688,44894,45518,44766,28313,18185,44767,45421,18353,45516,18894,17527,45042,17703,44768,44878,44845,17835,44531,44867,44835,44863,44764,5259,17771,44689,44711)
Unknown column 'np.person' in 'where clause'