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 (4686,18996,6875,44674,45051,13,17009,44687,24411,18688,16935,44835,18353,30986,45516,44775,18648,45180,5993,45421,10402,17556,44858,44873,18279,44875,45043,5259,45346,44765,32454,45518,44865,30963,44867,44711,22509,44856,17092,44764,44853,6862,44766,17839,44884,18794,17848,31354,44894,44861,13425,44745,17601,44762,5388,44669,45177,18446,17771,19057,17981,18430,44878,24438,44848,45515,18572,18719,45567,44863)
Unknown column 'np.person' in 'where clause'