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 (18981,45567,45262,17351,44867,17278,30986,44870,44884,10402,44868,45561,45229,6862,5410,44875,44894,31354,18894,44865,28313,44848,45286,37267,18301,17703,13988,44531,13922,18042,44775,45043,17237,32454,39676,44878,17556,44845,44687,44858,44855,17756,44854,37057,44869,17527,34194,44765,18185,44863,44640,44766,45516,18430,18650,3883,17839,44768,44764,45051,17335,14402,6609,18353,6875,43800,44851,18172,44849,13425)
Unknown column 'np.person' in 'where clause'