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 (44689,18794,44849,18172,18719,44531,17835,45177,17492,44866,44870,17237,17848,17556,6609,9341,32454,17755,45043,44884,44854,44640,17703,18894,16885,5993,45567,45516,44764,6862,5259,44845,44855,18650,18301,44869,45518,17114,44674,18996,44867,44711,5388,45515,45180,45051,44873,13,18446,28313,3,18279,6782,13988,44775,3883,44861,31354,18688,44868,19057,45561,24441,44765,24411,44865,34194,44856,18237,17904)
Unknown column 'np.person' in 'where clause'