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 (44858,44853,44884,24412,44531,45515,18172,44869,44836,44856,5259,16885,18185,45043,6609,44640,45277,44689,44865,18042,22509,19078,5388,28530,18794,19057,17237,6875,14402,17114,44764,44685,18688,5993,18279,28313,44745,9341,45421,14622,43800,17351,17839,17092,10402,45262,44687,17755,18430,44768,18427,45286,13922,18719,36472,24441,44867,18648,37057,17756,18996,44866,44671,44845,45051,45517,44765,45567,18894,4765)
Unknown column 'np.person' in 'where clause'