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,5388,44765,39676,17601,18172,17351,19057,17114,36472,45072,44855,17237,44848,44867,44640,44856,44767,14402,18042,44845,45180,24441,18981,45262,5993,17839,44878,44875,30135,17848,18900,44851,17092,18286,45518,17771,44689,44685,44837,45516,17904,44873,18996,17278,3,45515,45051,18572,16935,24412,18688,45561,31354,17556,45567,17492,17335,18237,4765,44868,17657,44671,44687,19078,32454,17009,18648,18427,17835)
Unknown column 'np.person' in 'where clause'