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 (45516,30963,18042,13988,45517,17835,44687,18279,18172,17904,17981,5259,37057,44867,44739,18996,17703,44669,3883,17839,44856,13922,44853,18301,45518,43800,44855,44835,44768,18237,18894,31354,24438,44767,44884,24411,44870,44762,45515,45051,44861,44873,14402,16885,45177,9341,28313,17278,18427,45042,44766,45072,17756,17755,44689,6875,45180,30135,13,44674,44531,44711,5388,18353,44863,44765,18572,18652,17114,16935)
Unknown column 'np.person' in 'where clause'