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 (18648,13988,45229,30986,17756,17492,44858,9341,18900,18894,44849,5259,19057,44669,17848,5388,44875,18794,45262,18652,17835,44837,6862,18042,45567,17601,45042,18981,44762,45051,44745,45516,44711,30963,18572,17351,44689,13922,17278,37057,14622,45177,36472,44863,44855,17904,4765,18688,44531,44775,44766,4686,30135,3883,22509,17237,44870,17556,5993,44873,18279,45180,16885,44687,18430,18237,18185,18996,45421,10402)
Unknown column 'np.person' in 'where clause'