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 (44671,44739,44762,44855,45177,45421,18652,17335,18353,17009,4686,44768,17492,18042,5993,17114,17527,32454,44894,45042,19078,17657,44849,17839,44640,17904,24411,6875,13,44853,45180,4765,44851,44745,18648,3883,37267,14622,45277,31354,44868,18237,44766,44531,17278,45561,37057,5388,44854,43800,13922,45072,44674,45286,8753,17755,24441,44711,44669,22509,6862,28530,45346,18688,45051,6609,44873,18900,17771,44767)
Unknown column 'np.person' in 'where clause'