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 (44854,45346,17839,44849,45561,44767,45177,44745,44894,18648,18446,44685,44875,17755,17114,18572,44851,44766,18301,17092,45042,44739,18279,44868,45515,44531,18286,44775,44669,30135,18427,6609,44762,44863,18652,39676,28313,24411,45277,5388,44873,17009,30986,17904,44835,17492,45229,10402,44858,43800,6782,44855,18650,28530,44867,14622,17237,44764,30963,44865,17771,18719,13,17278,45518,44768,44765,3883,9341,45517)
Unknown column 'np.person' in 'where clause'