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 (22509,17601,18446,44867,16885,44865,17657,44669,44674,13922,45042,18301,17981,44711,19057,44689,18652,37267,44836,44768,24438,6875,30135,45229,18237,45516,44775,44868,44878,44863,18427,17351,18650,17848,44765,17904,45567,44861,17237,31354,17755,36472,45517,8753,18894,17756,45515,44845,18286,17771,32454,45180,3883,44853,39676,30963,44851,44764,44855,44531,18996,13988,44739,18430,18981,18572,19078,18900,44848,44671)
Unknown column 'np.person' in 'where clause'