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 (17351,44762,45567,44865,44766,44836,18286,45286,30135,24412,44848,17009,44689,44853,44854,18446,17981,8753,45515,17703,17755,45518,4765,44835,28313,13988,44845,45072,17839,24438,18353,44739,18688,44856,44849,13,37267,14622,44867,45051,6875,17904,44855,17556,6782,44868,3883,44875,19078,13425,45346,18279,17278,18172,44878,45421,44640,30963,45042,44531,18652,18648,16935,17771,16885,32454,17492,17114,44671,45516)
Unknown column 'np.person' in 'where clause'