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 (19078,45517,13922,44863,44745,18301,17492,18650,44689,36472,44884,39676,13425,24412,17278,6782,17527,45051,45286,17848,44671,5410,17904,9341,44685,44766,17756,45043,18981,45561,18900,44875,44837,17839,34194,37057,17703,18446,16885,45516,18185,44869,18286,45229,5388,17835,18237,44870,24411,14402,3,43800,44873,45515,44855,17755,45177,44711,17335,17351,44762,30963,44894,17556,28530,18719,18794,5993,16935,18652)
Unknown column 'np.person' in 'where clause'