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 (18719,45286,45072,17848,28530,31354,45561,18688,45043,44739,44765,44894,17092,17771,18237,44837,4686,28313,44854,5993,44745,45042,6862,3,39676,44685,44674,18652,44878,18172,44865,44640,45262,45421,37057,44711,17492,30963,44866,44873,18648,17756,44669,45515,44884,17114,44853,44869,3883,17657,34194,17904,4765,14402,18427,24411,44762,8753,17009,17839,18794,44867,44851,44875,6782,17278,18185,17237,13988,44855)
Unknown column 'np.person' in 'where clause'