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 (5993,3883,24438,44836,44866,30986,44745,44848,44861,18794,44674,44865,44739,44845,45421,17755,44687,44764,17114,10402,44894,44837,17756,44870,18981,17278,5410,17839,19078,44869,28313,24411,44878,37267,17904,6875,14622,22509,36472,45042,17335,45277,44762,18719,45286,18652,18900,18237,17848,44640,39676,44858,45515,44531,18894,45517,44775,17492,44835,17237,32454,5388,45180,17009,6862,3,18446,44875,18185,44767)
Unknown column 'np.person' in 'where clause'