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 (44837,37267,17703,44685,36472,44878,45042,45567,17556,17756,17839,24411,18650,44669,17657,30986,44765,44865,18688,17351,4686,44775,17492,17114,44766,13988,44764,28313,6782,19057,45346,18353,44849,18794,6609,45262,45051,44531,9341,16935,28530,44848,30963,10402,44674,16885,45518,13922,44869,44739,44858,17335,45515,44853,44671,44870,34194,44835,45277,18430,18900,6862,17237,14622,5388,18652,17527,17981,37057,45180)
Unknown column 'np.person' in 'where clause'