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 (44863,45177,17335,45072,45561,45277,45567,44845,5993,18446,31354,37267,39676,5388,17756,18719,30135,18648,17657,28313,18279,44689,17771,44856,18996,13425,18572,44674,6782,18301,45229,44884,17556,44853,17351,18286,16885,37057,18794,17703,44711,44894,24412,44869,44762,17092,18042,44531,32454,44765,17839,44766,17601,17848,4765,45515,18427,9341,44764,44848,4686,16935,14622,17009,45516,18900,13922,44861,43800,45180)
Unknown column 'np.person' in 'where clause'