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 (6782,45515,3,44739,32454,22509,17703,24411,13922,45516,45072,17278,4686,17114,44836,18688,17848,45286,6609,17981,44531,45177,44851,4765,6862,9341,43800,17755,18172,30963,45229,44848,45042,17351,36472,44867,44687,5993,8753,18572,44775,44878,14402,44762,44767,30986,45277,6875,18237,45561,3883,18981,44766,44869,45518,18719,18427,45051,17839,44870,17835,16935,18794,44674,37267,44845,17527,13,17657,14622)
Unknown column 'np.person' in 'where clause'