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 (44835,44745,39676,44767,44870,18427,45517,13425,45286,44875,18794,5993,45042,14402,44531,44865,18981,17904,6862,44845,45518,44873,44765,4765,34194,44687,3883,18688,28313,17114,17492,10402,18446,17848,44851,4686,45180,5410,44674,17335,44868,44854,44848,17527,18572,18353,24411,45567,44775,44884,44764,6875,17351,6609,24438,44671,18172,17278,44878,6782,17839,45229,44711,30986,18279,44866,8753,44685,17657,18301)
Unknown column 'np.person' in 'where clause'