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 (4765,44837,45043,18446,24438,32454,18996,45051,44764,19078,17092,44858,17114,45180,45561,18427,30135,28530,37267,44765,44848,44861,17835,44863,17237,10402,44687,17771,18688,17904,17278,16935,37057,45286,45346,44869,17755,45177,13988,44671,17335,45277,18353,44685,44674,24441,18794,44851,34194,17527,43800,18301,3883,45072,5993,13,4686,44711,17657,44856,44865,44884,3,18286,6862,44531,9341,45517,8753,17492)
Unknown column 'np.person' in 'where clause'