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 (4765,18652,17601,5410,17556,44868,44531,44745,45518,17009,17114,30963,13,44851,45561,18648,36472,18996,44669,44711,45180,14622,18286,6875,17703,18427,18900,19078,44685,17839,44837,44858,30986,44878,13922,44870,44739,44689,44867,44855,44849,44674,17848,13425,18279,3,18794,24412,44856,17335,17092,18185,6609,6862,44765,44768,44854,45346,31354,45567,9341,8753,45042,44865,45072,45043,44869,17237,14402,18446)
Unknown column 'np.person' in 'where clause'