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 (6875,16885,44768,30135,3883,45180,17703,18650,44837,28530,44868,44687,44640,16935,6862,18430,10402,44861,18185,45177,17756,44764,44671,14402,44870,45043,36472,17092,5993,44685,44851,17556,18427,44884,17657,17601,19057,44856,44765,5410,22509,44674,44775,44865,45042,17839,18894,18688,18572,17237,39676,17492,45567,37057,17755,44689,18794,24438,17009,45421,13425,43800,45518,5259,45277,44853,44745,45072,17351,18652)
Unknown column 'np.person' in 'where clause'