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 (44858,17848,44739,24411,45051,45262,44878,4686,37267,5410,14402,3883,32454,45516,18981,19057,18652,4765,17335,6862,44870,17756,36472,30986,44854,17601,24441,45229,18042,44767,6609,45515,6875,31354,13922,45180,44851,44835,30135,16935,45517,44836,44845,44837,18430,18286,44765,16885,17839,45042,18353,44875,45286,44866,44867,45561,44669,8753,45277,18185,13425,18719,45346,22509,18237,43800,5259,14622,44894,17556)
Unknown column 'np.person' in 'where clause'