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 (45286,44835,44855,18353,44764,17848,18794,44853,18286,5388,31354,45517,44866,44669,45180,28530,18237,44775,44671,14622,13425,6782,44884,44845,17835,24438,10402,9341,17839,3883,44640,18900,6609,34194,44836,18427,18185,17335,45277,17755,45072,4765,18572,17092,44674,8753,24412,44767,19078,45567,44878,44875,37267,44869,17009,44689,30986,17351,5993,17492,18172,18042,45177,44685,17981,13,6862,22509,4686,14402)
Unknown column 'np.person' in 'where clause'