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 (44775,18650,44531,17278,44739,45262,44764,17835,17114,17556,17351,17601,18301,13922,3,44762,3883,18688,45072,18446,44711,18572,45346,45180,18172,44767,18794,5388,37057,44851,8753,44689,45051,45515,17756,44853,17703,5993,17009,10402,44855,16935,13425,44863,24411,34194,18286,44875,5259,17848,44848,17492,18427,18719,30963,44869,19057,17904,44873,6875,44884,44856,6862,44894,44674,24412,30135,17981,44766,18981)
Unknown column 'np.person' in 'where clause'