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 (45286,28313,17527,44878,18996,45051,3883,17114,44869,17601,18430,6782,24411,13988,18719,45518,44875,45516,44858,45042,17657,44775,16935,17092,19057,44866,18652,44870,44848,13922,44837,17839,44856,44873,17848,44671,45561,30986,44762,18172,44868,6875,36472,44669,13,18286,44863,18353,44764,5259,18648,18894,17335,16885,17771,13425,45567,45517,44711,17703,24438,17556,4686,37267,44767,44768,22509,44853,44766,44845)
Unknown column 'np.person' in 'where clause'