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 (5410,28313,37267,18719,9341,17771,45051,45567,14402,18650,45517,45042,44861,6782,44894,3,24441,18900,44640,45072,5993,8753,17335,30986,28530,45043,32454,17848,44689,30135,44875,45518,44836,3883,14622,36472,17703,44858,44863,13922,18042,44767,44855,44768,5388,44867,18353,44674,10402,17556,44845,45346,45277,44873,44687,6875,44851,4765,17839,45286,44837,18427,17527,45180,17009,17981,13988,44745,17237,18996)
Unknown column 'np.person' in 'where clause'