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 (18042,45042,44767,17756,44762,45346,19078,44687,18650,30135,5388,13425,17904,44863,28313,44669,18794,17114,44866,18648,17657,44868,6875,31354,44689,44674,17092,3883,13988,5993,9341,45262,24438,44869,19057,44849,44835,44685,13922,18286,17601,45518,45517,17278,44894,18652,8753,45567,6782,17009,4765,6862,18279,39676,44853,45286,18688,44765,44851,44855,45177,45561,36472,17556,45277,18719,24441,18301,18430,5410)
Unknown column 'np.person' in 'where clause'