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 (37057,45277,24438,36472,18301,18794,44845,44711,13988,28530,17351,14622,18237,3,19057,17981,18996,45516,17092,17771,6875,5993,45051,45567,44853,44878,44768,4686,44855,45346,5410,28313,30135,18648,45072,10402,32454,6862,18172,18185,45517,44854,44867,44745,18652,17601,44687,44875,17556,17657,44868,13425,18688,17114,44894,44674,44866,44764,17755,44762,44669,17848,13922,45177,18719,18427,44851,14402,30963,43800)
Unknown column 'np.person' in 'where clause'