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 (44764,44863,5259,17601,5410,32454,28313,36472,44685,43800,44867,44861,16935,17839,44848,13,18042,17351,45177,45042,18172,6875,44878,14622,3,5993,44671,44762,44836,17981,18286,24411,17335,44640,19057,44711,44745,3883,30963,18650,30135,44853,17092,17904,44687,44858,44856,45421,8753,17771,19078,44739,18981,44873,17114,44868,44766,44884,37267,18430,39676,44835,17009,45262,16885,44765,24438,18301,45277,45043)
Unknown column 'np.person' in 'where clause'