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 (44873,17703,8753,18279,44863,17492,17904,37057,44854,18286,44764,45051,34194,44768,24441,44878,44762,17278,44849,44848,44711,17601,44851,44856,45277,18301,44867,44858,4765,10402,45180,45286,30986,5410,44775,45229,45517,17839,18185,44640,43800,44531,36472,24411,18794,44745,45518,17835,18981,5993,18353,44866,44869,39676,44836,44855,45561,30135,44669,28530,17657,17848,17981,17351,17009,18996,44766,18042,44674,18572)
Unknown column 'np.person' in 'where clause'