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 (44766,13922,44875,17848,45517,44845,4765,44870,44837,22509,39676,30986,17092,24411,44866,45561,44765,44858,44671,45051,18042,44711,45516,44836,44873,45262,17351,18996,17009,44867,44764,45177,18572,44745,44869,45180,45567,44856,17657,44848,17981,17839,18650,16885,45518,44855,13,44884,5388,17114,44739,43800,45229,36472,18894,17237,44669,18900,19057,14622,45042,18427,45072,5259,44531,18172,18794,9341,17835,44854)
Unknown column 'np.person' in 'where clause'