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 (44768,18042,17756,17092,44866,4686,45180,5259,45286,44835,13922,37057,22509,6862,44863,44640,44867,44851,18427,14622,17848,18446,45516,44869,17556,44767,30963,17755,17351,44689,6875,18688,24412,45043,45177,44531,36472,44762,5410,44894,17278,30135,17835,44765,3,24441,8753,45517,45262,17657,16935,44873,45051,45421,16885,18981,44884,44671,18650,44845,45229,18652,34194,44775,44711,17703,44669,44856,45518,18572)
Unknown column 'np.person' in 'where clause'