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 (36472,17527,18427,6782,17756,16885,5259,32454,17755,24412,18981,18279,44711,30135,45051,44739,45346,18237,24411,45561,44845,17771,17848,5388,3,45286,18648,17492,44765,45072,8753,45517,44875,13988,19078,44868,13425,37057,18650,44836,6875,44687,24438,39676,5410,18794,13922,44762,17114,17351,18900,44854,45180,45043,17237,18719,34194,44866,18042,22509,16935,44764,17278,18301,18996,44669,18185,17835,14402,24441)
Unknown column 'np.person' in 'where clause'