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 (44867,45346,18572,31354,44894,44858,13988,30963,18446,45277,4686,17092,18648,17703,44685,44866,17527,44745,37057,45043,18650,45567,6875,45072,44863,28530,18172,44856,17848,17351,45177,18900,9341,44855,14402,44845,44853,17492,44861,44768,17335,17835,22509,17657,18301,18237,17114,18427,45518,44849,43800,44764,17009,10402,44775,18279,6782,44837,30135,44739,18042,18719,37267,16935,44869,18430,17556,18286,6862,24441)
Unknown column 'np.person' in 'where clause'