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 (44875,44640,4686,17492,17009,17755,44762,16935,18427,44685,19057,45286,44775,44856,18237,30986,18353,45072,44767,44861,44765,31354,45277,45567,3,18650,45051,45518,17278,44711,18996,45561,17527,44745,17835,18185,45346,13,17092,44863,44764,45229,17771,44873,17335,18446,45042,18688,18430,28530,32454,18572,30963,18042,8753,28313,44836,18648,37267,44894,17848,44851,44867,44868,44849,17556,17981,44531,44845,4765)
Unknown column 'np.person' in 'where clause'