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 (5410,44766,44531,45042,44866,44858,17527,4765,17278,45286,18427,17601,19078,44739,44865,44689,44837,44856,45346,17756,18185,17839,44745,37057,44674,44851,18042,24441,5388,9341,10402,18301,17904,18900,45180,45177,31354,36472,37267,18286,43800,16935,44685,17009,32454,6875,45516,45072,44671,44848,24411,44854,45277,24412,45229,5259,4686,18172,44867,44767,5993,16885,17657,18719,44878,45517,24438,44863,44855,44768)
Unknown column 'np.person' in 'where clause'