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 (3,45517,19057,13,17009,44865,44836,16935,44711,44739,5410,18652,13988,18430,18446,45051,44855,18648,45567,22509,44669,45072,18172,44870,17904,44869,44766,18900,30963,44878,24438,10402,6875,14622,18981,13922,17114,44867,17092,18185,3883,4765,17756,36472,17556,17351,18279,17703,44861,5993,44884,5388,45561,45346,18996,17657,18650,44848,18286,39676,18572,18042,18427,18719,17237,43800,45516,34194,17601,24411)
Unknown column 'np.person' in 'where clause'