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 (17848,45286,28313,44674,44765,17335,17237,44640,18237,17114,45277,18427,18650,14622,14402,18996,30135,36472,8753,6782,17703,13425,44863,44767,18172,24411,5388,45421,44851,37267,44766,24412,4686,17492,17771,44687,6875,44861,3883,6609,45177,45346,44894,44855,18794,17278,4765,43800,18688,44858,28530,24441,44854,44869,45051,44835,44845,13988,45072,44836,10402,17839,30963,18301,44762,17904,44866,5993,17981,18286)
Unknown column 'np.person' in 'where clause'