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 (17601,17092,18900,44866,45515,18719,45262,18185,45421,44745,6609,44711,8753,17492,17657,19078,6862,17848,6782,18301,18572,18286,44853,5993,45518,44869,44884,44766,18996,17703,44836,18894,18042,19057,44856,18279,45286,17335,34194,30986,4765,17351,13425,45561,16885,18172,45043,45516,28530,44858,44640,5388,45180,13922,44848,44875,28313,18650,45072,24412,45229,16935,44849,17904,44855,24438,44863,44674,13988,17755)
Unknown column 'np.person' in 'where clause'