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 (44640,18185,6782,44868,24438,44762,32454,44878,44739,39676,44765,44867,44836,17278,44866,30963,3883,4686,44853,44689,5993,17848,30986,18794,17601,44848,18353,18301,45421,31354,45277,44764,17771,18650,30135,44884,19078,44775,28313,14402,6862,44745,18894,18042,5410,44669,18286,18427,14622,22509,17835,44863,44849,17114,18981,45043,45346,18430,18172,44531,17657,44858,5259,16935,37267,44685,17703,45517,45567,36472)
Unknown column 'np.person' in 'where clause'