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 (18279,44765,30135,45042,17756,44531,28313,44739,31354,17335,14622,44837,45518,45421,17114,34194,3883,44866,44848,37057,24438,19078,45072,44775,18446,30986,44894,13988,45515,22509,16885,18794,44845,18353,45346,45277,9341,45043,44868,4686,6782,44861,5993,10402,17237,32454,18650,6609,18042,44865,17278,17904,17703,45051,44669,17092,44853,17351,18648,30963,17755,5259,36472,44674,18185,45567,44836,16935,44855,18981)
Unknown column 'np.person' in 'where clause'