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 (45043,30963,18894,44768,30135,45515,39676,17657,17492,44861,45072,31354,45518,44853,24412,44851,44835,24441,17756,45277,37267,44849,19078,44775,18430,24438,45262,44894,13922,44854,43800,18572,13988,44866,4686,18446,44531,44845,28313,44764,17351,14402,17114,17981,4765,44884,45180,44865,17839,18648,45229,6875,44856,6862,17335,44766,45517,18652,44878,13,18286,14622,16885,17278,13425,18301,45421,5388,17755,45516)
Unknown column 'np.person' in 'where clause'