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 (14402,17237,30986,36472,45043,45515,18652,18996,44861,18279,22509,44873,44669,44875,45517,16885,43800,17335,28313,18353,16935,44739,17351,17756,18650,44867,13,18286,44856,8753,44674,45177,45042,19057,44870,44671,18572,44865,13922,44640,44531,24438,18427,24411,4686,44894,44764,45229,17771,45567,17527,44765,17981,44762,5993,18648,45286,44853,5388,45051,44855,6875,17835,18237,6862,44711,24441,18719,45561,14622)
Unknown column 'np.person' in 'where clause'