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 (45262,17009,18650,17351,44766,44875,6862,31354,17278,18279,45517,44767,9341,4765,18794,44878,19057,44836,44671,17492,44674,4686,44711,45567,17556,44762,44855,6782,44837,5388,44531,17756,18719,18446,43800,5993,18900,39676,44775,17601,44863,44894,44739,44851,44854,44866,14622,44870,3,36472,44873,45072,44867,18427,17092,24438,17237,17904,37267,18981,44640,44853,18652,17114,44687,18042,44835,18688,24411,13425)
Unknown column 'np.person' in 'where clause'