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,17756,44835,18572,45346,19078,5388,17755,17009,44848,24438,30135,8753,24412,24411,45515,44856,39676,17492,45229,44865,17839,18650,18688,44869,18237,19057,44671,30963,37267,17278,6875,45518,44766,45517,45262,17657,17835,44854,4765,10402,13425,17981,45561,6782,17351,45421,18900,17237,44745,3883,44685,44764,45043,18430,45072,44855,14622,17771,17556,3,5410,45051,44861,18042,45177,45042,44836,44866,44768)
Unknown column 'np.person' in 'where clause'