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,44845,3883,45262,18286,6862,45518,45561,45042,17492,44531,17237,8753,44863,45346,17657,5259,44870,44764,44853,28530,30963,44866,13,17904,44868,44855,45515,18172,45421,44848,17092,17335,45072,44685,44875,44884,45177,45043,17835,17114,16935,32454,13988,18353,17771,44867,44873,13922,18427,45516,44878,44894,44745,28313,17839,17703,45051,4765,18430,45180,44669,44835,18301,17601,34194,18237,45286,6875,5410)
Unknown column 'np.person' in 'where clause'