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 (4686,5993,45517,44851,43800,18688,18794,18894,45072,37057,18353,45177,44765,44845,44836,44875,45421,17092,44685,18172,3,44640,16935,44865,18652,18648,45262,13,37267,17492,32454,44863,18430,44768,44671,44764,3883,18427,45277,45043,31354,45567,44866,14622,44869,36472,44861,18185,17009,6875,5388,18446,18650,17771,44669,44711,6862,24412,17839,19078,39676,45286,13988,19057,44745,10402,44775,18900,18572,18279)
Unknown column 'np.person' in 'where clause'