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 (30986,39676,17009,44853,16885,43800,44837,17848,5259,37267,44884,14402,18301,4765,18042,44845,44671,45262,44849,24441,44674,44745,45277,18794,13988,44775,17771,17556,44866,17601,32454,44768,44765,14622,18446,31354,44894,44870,18996,44873,17756,6875,45516,24412,45072,44869,44836,17114,24411,44669,18572,45229,44878,17904,45421,17981,45180,44762,17703,18237,44867,45518,18650,19078,17527,44851,18185,44689,28313,18353)
Unknown column 'np.person' in 'where clause'