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 (6862,10402,44745,19078,44855,43800,18185,44861,45517,5410,18996,44764,3,16885,44767,44768,37057,45277,17755,17601,28530,4765,44845,45051,18794,31354,44868,44863,5388,22509,13425,17771,18652,18648,18301,39676,17237,44870,45518,44674,45421,18427,18286,45229,44669,14622,6875,32454,44835,6609,44766,44837,17904,44851,45286,44775,17114,18894,5259,45567,16935,44739,3883,24438,17351,45262,17092,18279,8753,45515)
Unknown column 'np.person' in 'where clause'