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,17981,4765,19057,10402,44878,17755,17657,17527,44775,44851,37057,45042,45286,44865,44856,17848,44671,45277,18430,32454,44867,22509,44868,44669,44894,6862,18996,44836,17114,17601,44875,13988,19078,18688,44689,45177,44845,18648,45561,44858,34194,45043,18427,24441,45072,44687,45346,43800,45517,44855,30135,39676,31354,45515,30963,18900,14402,5410,24438,16935,18286,44869,3883,18042,18172,45516,16885,17771,37267)
Unknown column 'np.person' in 'where clause'