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 (31354,18996,44851,17755,17351,44837,19078,45421,28313,34194,37057,18572,44867,17601,44869,18688,44766,45043,16935,44835,17904,13425,44775,44861,18279,44848,44531,45042,17756,5388,44870,44674,18353,44669,14402,44711,44768,17657,44836,44765,18894,39676,37267,18286,24411,44858,18650,44854,44687,17335,13988,30986,45286,28530,5259,44767,6875,44845,18430,17492,18981,18900,18719,17703,45177,17556,44884,44873,17527,24412)
Unknown column 'np.person' in 'where clause'