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 (45518,5993,6875,44674,45517,45516,22509,44866,44875,45567,18446,44837,45286,13988,3,44848,44851,18894,45043,17237,8753,17848,18900,16885,44671,44685,18427,44868,44870,17904,44873,18719,18648,44689,24411,24412,43800,3883,44856,18981,19078,24441,28313,17756,45561,17556,44884,44858,14402,17351,45042,17335,44764,17755,31354,13922,45051,44739,44861,19057,44711,18688,34194,44775,37057,24438,17492,16935,18572,17657)
Unknown column 'np.person' in 'where clause'