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 (24411,5993,18301,17335,18688,17904,17839,45561,44863,44837,31354,44764,18353,17556,17492,17527,17981,30963,45286,44853,39676,30135,18172,43800,34194,45177,45516,44836,18446,5410,44861,14622,44849,24441,45180,13988,45262,44856,17278,17703,17009,18185,14402,44669,44894,44767,44855,18719,19057,44531,17771,18042,44685,45277,17848,44875,17092,18652,45346,45517,18572,6782,44671,44868,4686,28313,44867,44745,18648,13425)
Unknown column 'np.person' in 'where clause'