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 (17771,18648,45072,44894,43800,19057,44870,17092,17114,44835,45346,45177,14622,45561,17351,18572,45262,44849,45286,17703,17839,18427,18900,18237,30135,44855,44739,17835,16885,44869,3883,44689,36472,31354,17237,18652,44856,39676,18894,45421,45277,6609,45180,5259,44861,45516,13,44845,17657,45051,18794,17278,6875,44836,16935,17755,45518,5388,17492,18719,28313,44775,10402,44848,18279,17601,13922,44863,44669,44767)
Unknown column 'np.person' in 'where clause'