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 (17278,44866,17335,18688,45262,14622,28530,17092,3,44853,45567,18185,44894,5993,44671,6782,44768,18042,18648,5259,44875,44870,44865,44845,45286,6609,17848,18719,17009,45229,44766,44775,17839,22509,30963,18286,18172,17556,44884,37057,17601,44685,44878,44861,44762,45516,17527,44767,45051,45043,43800,44835,24411,44867,45042,18650,44689,6875,17755,17981,44836,44687,17904,44849,17237,18279,45180,34194,44531,13922)
Unknown column 'np.person' in 'where clause'