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 (45229,17835,5388,44868,45262,44855,44866,16885,44640,44687,3,18279,30986,17009,44775,44689,30963,44762,28313,24441,6862,17755,13988,37057,18652,44711,36472,17092,44849,45286,37267,19057,44856,45051,44765,18185,18430,44854,14622,17848,18650,44869,17351,18572,44739,44870,44858,3883,13922,45515,18996,45042,44848,45072,44884,45517,45346,17839,39676,32454,44853,17756,45561,44878,18648,4686,45567,13,44674,17601)
Unknown column 'np.person' in 'where clause'