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 (45043,45346,44669,19078,44745,16885,14622,45515,8753,45517,44531,10402,28530,5388,18794,44674,24438,13,44870,18650,45518,18996,45072,44849,44878,44766,45286,18430,28313,14402,18279,44689,18446,24412,18427,16935,4765,44855,24441,44739,17278,18688,17009,39676,17114,30986,45277,44875,44685,44768,17492,4686,44851,45516,17771,17351,19057,5259,3883,17335,44868,44640,18652,45180,44848,44765,44873,44854,34194,6862)
Unknown column 'np.person' in 'where clause'