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 (14622,30986,17835,45072,17237,44685,44854,44861,44764,18042,18996,44669,45277,3883,17771,18900,44875,18427,44765,5388,18894,45516,44739,13988,17703,44531,10402,17009,18794,39676,45421,19078,44870,44894,18572,44867,45518,45286,44745,6782,45346,44866,44674,31354,43800,44868,18688,18648,17114,17492,16885,44855,44775,18353,44711,37057,44845,13,3,44858,44884,36472,44767,45567,18301,44687,44878,18719,45561,44766)
Unknown column 'np.person' in 'where clause'