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 (18981,17904,17835,18042,45042,4765,30135,44764,17492,17009,16885,30986,18353,44671,45517,45180,14402,18286,44856,44863,44766,6862,6875,36472,44868,9341,45177,44689,44870,44711,39676,10402,44669,17527,43800,44768,17981,44873,16935,45051,28530,24411,17237,44851,18427,44835,44855,17771,37057,13922,17848,17278,44745,5388,45515,18650,45262,45286,17351,44845,17703,13425,45229,18688,45516,44848,17657,19057,17335,17756)
Unknown column 'np.person' in 'where clause'