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 (45051,45421,24438,17092,13425,43800,18430,44865,3883,44878,44867,18185,44875,45346,5410,8753,28530,17839,39676,44768,17601,44849,28313,44868,18572,44854,22509,45516,34194,17278,17848,44861,45277,3,14622,17771,44851,44640,45561,18650,44775,45517,44689,18427,17703,18237,44685,18042,17527,45180,44856,19078,30135,18794,44762,44866,44671,36472,44853,16885,44765,44531,5388,18719,44894,24411,45229,44767,18648,18652)
Unknown column 'np.person' in 'where clause'