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 (28530,24412,44764,45042,44687,45072,44674,45515,18688,22509,17237,17114,17601,44669,45229,17756,44640,45518,31354,44869,6609,45262,18572,44848,44689,17755,6875,45516,45051,45561,13988,44775,17278,30963,44711,44868,4686,17092,5410,45180,17703,18652,18301,14402,45277,45421,24411,17009,6862,44867,34194,9341,44739,44863,18650,44873,17981,17556,44745,17351,17771,13,44855,44685,45567,19057,10402,17657,24441,39676)
Unknown column 'np.person' in 'where clause'