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 (44849,44775,17904,44854,44687,31354,18572,39676,44851,45177,14622,45277,17351,44869,44671,4765,18185,44531,22509,44764,44875,17771,18430,44865,44866,14402,18279,16935,18719,17839,18353,44870,44853,45518,44867,44856,13,44845,18446,19057,18286,17657,13922,30986,36472,45421,18237,18042,45072,44739,43800,18427,6875,17092,18900,24438,44855,17114,44884,18996,17556,45567,44766,45180,44878,18648,18301,44674,17981,44837)
Unknown column 'np.person' in 'where clause'