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 (18172,17237,31354,45180,44739,18572,45051,44849,44765,10402,44855,13922,3883,45516,45177,6609,44762,44745,17351,5388,44856,17657,45346,44835,30963,18650,18279,17114,44869,44848,18185,44531,5259,44853,6875,44768,24441,45518,18688,44858,44640,34194,44878,17092,44685,17835,44870,17335,44865,18430,44764,28530,4765,44767,45561,18981,18446,18042,6782,17756,44873,44836,18794,17492,44866,37057,18286,44766,45043,18427)
Unknown column 'np.person' in 'where clause'