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 (17904,17839,30986,13988,44739,13,34194,16885,44861,17092,17335,45518,37267,44845,39676,24441,44837,44689,17278,18185,6862,44674,44687,17835,17556,14622,5388,18794,44870,44531,43800,18652,31354,5410,45567,44764,36472,17351,24412,45277,17703,44711,45262,44835,13425,17848,44856,30963,13922,8753,17009,45229,32454,45561,44867,3,44767,44884,19057,37057,24411,45042,45177,17981,44853,18237,18279,5259,18427,44671)
Unknown column 'np.person' in 'where clause'