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 (45517,8753,44835,44869,18353,44848,5993,44878,18688,13425,17755,45561,17527,44845,17335,17904,30135,17278,17601,44875,18427,45051,14622,45072,44858,45042,4686,18648,17981,44851,37057,14402,45286,28313,45518,44836,24412,16885,44775,45421,43800,18996,44853,34194,19057,17756,44766,45177,6875,44870,18894,18900,32454,17835,44849,9341,45567,44884,17657,17556,44689,45180,44865,6782,45516,18279,5388,13922,17848,18430)
Unknown column 'np.person' in 'where clause'