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 (45042,24412,44689,36472,45567,18430,17835,44768,18648,45277,30135,44848,5993,30986,24441,45518,18572,44849,18894,17009,5259,17114,31354,44851,14622,13988,16885,3,45517,16935,17703,44856,44711,44878,18900,45043,44854,18279,4686,44884,22509,17527,17839,18286,5410,19078,4765,44531,44671,44866,44858,8753,10402,24411,24438,45072,44766,18650,44855,30963,18652,44762,14402,44865,44869,17771,17092,9341,44685,17756)
Unknown column 'np.person' in 'where clause'