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 (44861,45043,19078,17351,17114,16935,28530,45072,3883,13,24441,44764,44848,44866,30135,18279,44858,17657,18900,18286,17492,44531,45346,17009,18042,6875,45518,44669,17839,44863,18648,8753,18172,13988,45180,44671,5993,44869,13922,17092,44835,18301,24411,44856,18572,45277,45177,18652,44711,45042,44875,18427,31354,36472,16885,6862,13425,17335,18688,44687,18237,6609,44674,5410,44868,44851,14622,44745,44640,44849)
Unknown column 'np.person' in 'where clause'