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 (45262,17904,17556,3,44861,8753,44835,17601,16885,45180,45229,24438,44689,44837,44855,13,18688,30986,44894,17492,17092,17848,17835,18279,44863,6609,22509,6862,17756,45177,17009,44671,45421,36472,44878,14402,17351,17981,44868,44866,44873,17755,34194,14622,18572,28313,17771,6875,37267,3883,44745,45072,16935,18650,4765,18794,18172,24412,44858,44775,18427,18430,18301,39676,31354,13922,18648,45515,44851,44875)
Unknown column 'np.person' in 'where clause'