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 (18648,44687,16935,44766,34194,45286,18172,44884,44764,18042,44711,45072,24438,45515,17278,18237,17755,44739,45516,44835,44869,30986,13,18794,44768,17848,17981,18301,17351,32454,14622,4765,5388,18430,16885,18572,19078,24412,44875,17009,44837,18981,18688,44865,24411,45346,17756,22509,45518,17839,44745,44685,45177,8753,3883,44775,45180,17835,45051,6782,44866,13922,18719,44849,17556,44858,5259,6609,45561,17771)
Unknown column 'np.person' in 'where clause'