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 (17703,44866,44851,44768,24438,44766,17904,44875,17492,17335,45421,44878,44861,44767,18794,18688,18353,8753,44837,44856,44865,17278,45286,18172,30963,34194,44836,14402,45515,30135,18279,10402,44711,13922,17351,5993,44858,3883,18648,30986,32454,44640,45177,44845,44689,31354,18042,44671,44739,16935,17657,4686,17237,45561,44853,17981,45567,17835,17601,17009,44775,45051,45229,5259,16885,44894,19057,44685,45043,45517)
Unknown column 'np.person' in 'where clause'