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 (18286,28530,44745,18237,34194,13,45177,44845,39676,44854,44865,18688,9341,28313,45517,4765,44894,44867,17981,6782,44766,30963,45286,32454,6862,44873,24412,17771,13922,13425,17839,24441,18572,45051,44711,44870,45277,17114,18981,44875,17755,18900,18427,17556,24411,44856,6609,45518,30986,19057,16885,17527,44868,37057,4686,17278,18279,17492,17848,14402,13988,44848,18794,44739,45516,44775,16935,44768,18894,17092)
Unknown column 'np.person' in 'where clause'