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 (18900,17657,45286,44767,44853,17009,13922,30986,18427,32454,45177,17756,18042,18572,14402,4765,17755,44866,37057,45180,17278,44711,18650,24411,45561,44765,44768,44865,5993,45567,8753,45516,18688,18172,17492,44762,44884,6862,17527,17835,18981,44855,3,18185,17114,44689,17839,18648,44775,44640,13988,17848,44745,44687,44878,45518,18301,45229,45515,18279,45042,17904,17351,18652,45043,22509,17335,44863,44856,18794)
Unknown column 'np.person' in 'where clause'