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 (10402,44868,45262,45043,18172,39676,17839,44765,44851,24441,44845,44768,44875,18042,18900,18688,44685,18719,17278,17756,4765,44531,18185,17092,18237,17009,18794,44837,45072,44674,24438,13988,45421,45286,44689,44711,18427,44855,44878,18652,17114,44873,45515,14622,45516,44856,17237,17601,44687,13,44869,44671,18430,22509,18996,44863,45229,8753,18650,24411,16885,44849,32454,17835,44858,17556,17703,5388,17904,44866)
Unknown column 'np.person' in 'where clause'