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 (39676,17114,24438,44861,44875,45177,44878,44739,6782,18353,17278,18301,44856,17755,17657,44745,30135,4686,44531,17556,44854,18237,17527,24411,43800,44671,18688,45567,18794,14622,45262,10402,32454,44835,18900,17835,18286,18719,13,6862,9341,13988,30963,18430,18446,44868,45051,31354,45072,18648,18652,6875,18572,5410,45517,45346,44711,4765,18279,44855,44669,18172,45042,18996,44689,17092,18042,44863,24441,44865)
Unknown column 'np.person' in 'where clause'