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 (17114,44851,16935,44531,44848,45567,5993,45286,45346,18353,17092,24441,13425,3883,44853,18688,44775,9341,18894,45177,44767,31354,45277,17755,18652,44870,17657,45518,18648,45072,18430,45043,17009,45229,14402,18996,28313,18042,44685,4686,39676,30135,44764,17492,45515,18650,18237,44845,17848,17237,44687,17278,13988,44861,5388,45262,44674,17556,44849,32454,24411,18572,18185,24412,45517,30986,17771,4765,10402,44884)
Unknown column 'np.person' in 'where clause'