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 (17601,4686,45051,43800,18794,45177,44739,39676,18688,17556,44674,5993,45561,17335,44671,17278,14622,44836,18894,24411,18353,44858,18719,19078,28313,4765,44878,17835,24438,45518,45515,44766,28530,17237,44762,5388,6875,44775,44745,44856,17092,44835,24412,18430,17848,45180,17527,44768,44851,30963,18185,18172,44711,18650,45042,44767,44531,18996,17351,18652,45567,17771,44863,34194,17981,32454,45262,44640,44845,36472)
Unknown column 'np.person' in 'where clause'