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 (17114,45517,18172,18688,17904,18981,44768,4686,5410,44775,44739,17556,18353,44849,24438,6782,13,17771,44531,44640,45518,24412,44835,30963,17839,44865,17756,44869,45516,17601,17848,44689,45515,24411,17278,45346,45177,44671,14402,17092,45072,18652,44873,16935,34194,17657,13988,44854,22509,45043,17835,45286,9341,17492,28313,44866,44884,45262,13425,16885,18648,14622,18237,39676,45180,36472,44870,37267,37057,5259)
Unknown column 'np.person' in 'where clause'