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 (30963,6875,45072,44531,18572,17771,45346,44855,17981,18427,44640,44866,5993,45229,44687,17755,18688,17703,45262,44762,17092,13,44875,30986,16935,45515,6862,13922,3,44854,44873,44861,44863,44739,44870,17848,44849,45518,18279,22509,18301,6609,37057,44884,18172,18981,6782,32454,45421,45180,44775,17657,44894,28530,18894,44835,44745,18996,45043,24412,44764,44858,18794,17114,44674,44768,17278,45516,17009,44878)
Unknown column 'np.person' in 'where clause'