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 (30135,45515,19078,18652,17703,44855,45286,18572,17237,17904,17755,17009,18996,18688,4686,44884,18172,44669,3,39676,6862,18286,18894,17756,44762,8753,30963,44894,24411,16885,44767,44531,44671,13922,45072,18900,17848,5259,18981,44836,24412,37267,18427,44687,34194,13425,31354,22509,5993,14622,44765,45042,45229,45517,17351,18794,45516,44835,44764,32454,18648,17981,43800,44858,44875,18279,18353,17839,17092,10402)
Unknown column 'np.person' in 'where clause'