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 (18794,44685,44671,45518,13988,6875,44836,18301,6782,30135,4686,8753,17755,18279,44764,44873,31354,6862,37267,44766,44853,45229,45072,45262,44531,17114,18981,18648,45346,18172,44867,17556,18719,44835,17904,18688,45421,18430,44762,17756,13425,17009,44687,44869,44837,13922,34194,3883,44855,44884,43800,39676,17601,30986,44861,45177,22509,44866,44739,17351,18894,13,44711,18572,18996,44640,17237,17981,18650,17657)
Unknown column 'np.person' in 'where clause'