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 (43800,44674,44685,31354,17657,14402,6862,17492,19078,44711,24411,17601,17556,10402,44863,24412,44851,5259,17009,18172,44766,19057,18981,45180,18430,45518,45042,24441,18286,44745,17756,30963,36472,44669,17755,30986,44836,45262,13988,3,18353,45229,3883,44764,44775,5388,30135,18794,44873,44861,44855,44837,5410,44768,6875,44866,45516,37267,45517,18237,17114,17981,34194,17904,44671,5993,44853,44640,44767,18648)
Unknown column 'np.person' in 'where clause'