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 (30986,44856,18301,44711,6862,44853,16885,10402,17335,44836,17556,44835,28530,24441,18996,17657,44775,45515,13425,44671,17771,45072,5993,28313,17527,45286,44531,18427,17351,45421,17755,18172,45180,44762,45516,18648,22509,45561,44837,44739,14622,39676,34194,44851,44854,44689,44869,17981,43800,45517,18900,44764,18430,18688,17756,44870,18446,4686,44855,44865,4765,44863,3,44858,13,44866,44685,5259,45043,44868)
Unknown column 'np.person' in 'where clause'