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 (4686,44835,17009,17771,17904,44863,18794,18430,34194,10402,17492,28313,18648,24411,17351,16885,17703,28530,13922,17756,44711,17657,44669,3,44766,44869,16935,44837,18572,18894,44764,45229,8753,24441,17556,17335,45051,30963,14402,3883,44689,17601,13425,44687,45515,44853,44640,44845,17237,44768,19057,37057,44870,44745,17835,45567,6875,44848,24438,14622,45043,19078,44861,39676,17278,45346,18446,6609,44775,32454)
Unknown column 'np.person' in 'where clause'