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,31354,5410,17755,45518,24441,44861,22509,44739,37057,44849,44894,17981,44671,44837,18572,13922,17904,18427,44845,10402,18688,16885,44711,45180,45517,17009,18900,44669,18996,17756,44870,16935,44855,44531,17771,45286,13,45229,17601,45346,39676,6875,44853,17839,28313,44775,44868,3883,18446,30135,19057,18430,45277,30986,44674,44858,24438,45177,18652,14402,45567,18353,44836,13988,18237,18172,17848,44687,44767)
Unknown column 'np.person' in 'where clause'