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 (17335,44764,44762,44837,44765,18301,44687,17835,24438,17981,44768,17848,44884,44766,44745,18572,6875,44878,44640,18172,44853,44835,45051,44836,18648,44869,43800,45072,19057,18427,44870,18996,44674,32454,18237,13988,18900,44856,45516,14622,24411,17703,37267,16935,44868,45177,45277,18650,18042,9341,44849,18894,17009,17839,31354,17114,17756,17771,17092,18185,39676,45421,34194,18652,45518,36472,44845,5388,17556,5410)
Unknown column 'np.person' in 'where clause'