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 (44868,43800,18652,18794,45421,44689,30963,17839,45262,17009,37057,17114,5410,44849,44766,13,32454,44685,19057,37267,18572,44870,44775,6862,18650,44884,44745,45518,13922,44866,44837,5388,45515,17351,18353,44836,44878,45072,44855,24441,17601,16935,6875,17981,18719,45051,5993,18286,28313,44669,17848,45043,10402,18981,17278,45567,17237,45229,18237,44854,36472,18688,3,16885,17755,18430,45177,8753,44762,44765)
Unknown column 'np.person' in 'where clause'