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 (44867,10402,44669,44775,5388,44739,45177,18427,18652,44837,44875,17527,44861,17756,3,19057,44766,44863,9341,45421,44873,18688,17657,44848,44854,44851,18279,44711,44689,24411,45042,17092,18900,6875,44878,17278,44870,17556,16885,24412,45072,45262,18650,44865,18894,4765,34194,30135,18430,45346,44671,45180,16935,17771,5259,17839,44764,17009,44768,44855,14402,45516,18172,45277,30986,13,17237,31354,44765,18185)
Unknown column 'np.person' in 'where clause'