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 (28530,44867,24412,19057,5388,17657,44745,44671,3883,16885,9341,17981,44858,6862,44868,44711,18572,18172,43800,18286,45517,18900,17755,24411,44851,18719,17278,44848,44861,18430,44775,30963,5410,17756,17835,45286,8753,18894,44835,6875,3,44689,44739,45516,17904,13988,45177,45262,18237,45346,13425,5993,18353,14622,45561,45277,10402,17009,17703,4765,17351,6609,45567,17839,45229,44669,19078,44869,45518,14402)
Unknown column 'np.person' in 'where clause'