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 (17351,17556,10402,44849,45180,18900,30135,17114,44869,13922,6862,45072,18301,44762,45277,13425,6782,18648,18719,45517,18237,3,18652,44858,44766,18279,44863,44768,18172,18996,45346,17755,44865,44861,18446,17009,44765,44739,18894,45516,6875,8753,31354,37267,45515,45567,17335,18572,44745,43800,44767,17492,44848,17839,45561,44674,18286,19057,24441,44671,19078,44711,5259,44689,5388,44836,44851,18430,45177,16935)
Unknown column 'np.person' in 'where clause'