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 (18427,44711,17601,17839,17981,30963,18185,24438,44765,14622,17492,24412,37267,13922,44836,36472,31354,5993,8753,37057,28313,45229,17237,44745,6609,17848,17771,44866,17556,30986,17335,18719,44856,45516,22509,5410,44878,44689,45517,6862,45042,14402,18900,19057,18237,18652,45262,44775,34194,44687,18996,44865,4686,17756,44854,45346,44531,18353,18894,18981,17527,44867,17009,45180,17904,16885,24441,44849,44894,44855)
Unknown column 'np.person' in 'where clause'