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 (18237,17848,44858,18650,44775,44711,24412,44865,17278,17657,44869,8753,3883,44868,36472,17771,18648,6862,44894,44837,28313,44851,5993,44884,44848,5388,16935,18894,44762,6782,10402,44766,32454,44767,17755,44640,13425,45515,17092,28530,44875,17009,43800,44836,17237,18572,45516,45229,18900,45043,17601,30986,19078,5410,44854,44835,44689,18996,18688,24441,45567,45518,44863,18353,17835,4686,9341,14622,44764,44739)
Unknown column 'np.person' in 'where clause'