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 (17278,18279,18172,17092,45042,44869,44894,44640,45043,18572,17351,13922,22509,5259,6862,24441,17848,18237,45277,44870,36472,6875,45177,44858,14622,16935,44866,18427,17009,13,31354,30963,44768,18648,17756,44531,17492,17839,34194,45346,13425,5388,17981,18042,44739,14402,37057,44884,13988,17835,44835,18430,19078,44868,17556,45516,18185,18900,18688,44764,17904,17657,44863,32454,44873,17601,44861,18446,16885,45517)
Unknown column 'np.person' in 'where clause'