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 (45229,6782,44687,36472,13425,44764,30963,18172,3883,44873,18894,44845,30986,19057,44766,16885,37267,24438,44861,14622,17492,44856,17556,24411,44866,45180,44711,44851,6875,17351,22509,44848,17335,44858,44863,17848,17601,28313,18427,32454,17839,45286,17981,5410,13,10402,44870,45561,45346,44671,43800,44884,18042,44836,45567,18237,17527,3,18353,18794,18446,18648,31354,44775,5388,17009,17756,45042,44894,17657)
Unknown column 'np.person' in 'where clause'