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,30986,18688,44764,44766,45051,44711,17981,18894,44861,17703,45043,32454,14622,45229,18185,44875,44858,6862,6875,37267,45516,43800,44767,45515,45561,45180,18719,44866,9341,30963,18648,4686,45177,44689,24411,45567,39676,3,18237,16885,18572,18981,44855,44531,18042,17601,22509,18446,24438,44863,17492,44674,14402,16935,44869,17657,17556,28313,18279,44762,44878,45262,17755,18286,44870,17527,44745,44640,13988)
Unknown column 'np.person' in 'where clause'