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,44875,45177,5259,44870,18042,17839,45518,14622,43800,36472,44837,44884,18353,24412,30963,45421,44745,45229,18572,18301,44868,18652,44775,45277,16935,14402,18172,44865,17237,45567,45262,18427,44835,30135,18185,16885,44856,17703,17771,13922,30986,13988,18237,3883,44866,44766,44863,6609,18650,44836,24438,37267,17657,13425,18648,32454,44762,8753,44640,24441,17278,17351,44531,4686,6862,18688,4765,44849,19057)
Unknown column 'np.person' in 'where clause'