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 (44878,16885,44762,44849,17601,18172,45516,16935,44855,44836,14622,13922,24438,36472,14402,30986,44640,45517,44687,28530,18794,44685,44853,44711,18996,18427,17703,13,44858,45518,44845,18900,18648,44669,17657,44861,17351,18894,45072,13425,44894,17904,44854,24441,44671,44689,4765,18430,44764,18237,44856,39676,17756,18719,5410,18688,10402,34194,44766,5993,44768,5259,6782,8753,44851,44739,45177,24412,17839,44866)
Unknown column 'np.person' in 'where clause'