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 (44671,18185,18719,37267,18996,44848,45072,17981,18279,5388,45180,18688,3883,43800,13,32454,45346,13425,17335,18286,44640,17351,34194,44854,44531,18430,44861,24438,18648,10402,44865,44775,39676,24412,18650,13988,44766,30986,44745,45262,45177,45277,44685,17839,18172,17756,44739,44845,18900,18353,17703,45229,45286,45516,44855,17771,18237,44768,44851,45567,18894,9341,13922,17114,24411,17601,3,17755,4686,44884)
Unknown column 'np.person' in 'where clause'