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 (17527,44878,16935,5993,18427,5410,14622,44768,3883,13,10402,18900,18279,44848,44767,19057,31354,45567,17755,44745,17092,44855,17703,5259,24411,45561,18430,18286,44671,18648,17904,43800,18185,44765,45517,18172,44837,18719,37267,17601,44863,44689,18794,9341,18894,44685,45286,17492,17278,30986,44711,44865,17335,13425,18042,17771,17351,45516,6609,36472,17835,45072,44687,4686,44867,18572,44866,6875,45277,18446)
Unknown column 'np.person' in 'where clause'