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 (44739,18237,44869,44845,18894,24411,45561,44849,14622,45567,9341,18172,28313,30135,18719,4686,44762,44669,17981,28530,44884,44768,37267,44867,18900,17009,3883,18794,17839,16935,44894,18981,17237,17527,17556,18427,44689,44764,17351,45262,5259,44837,44531,13988,13922,18572,44873,6782,30986,5410,8753,32454,45346,10402,45043,44835,22509,17756,37057,45277,44870,44687,36472,45516,18650,45286,17848,14402,3,45229)
Unknown column 'np.person' in 'where clause'