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 (37267,24412,44848,44768,17601,44854,18981,44640,18279,45180,37057,3,28313,44739,44849,13425,13988,6782,17556,31354,18794,44671,17703,18286,17092,44764,45346,4686,36472,17981,45051,18237,44711,43800,17527,45229,30963,18648,18572,44867,44875,44685,19078,13922,17492,17351,44845,18185,45262,45177,44853,44689,45515,44531,44766,17278,18894,44765,14622,44863,18719,18650,17657,44856,19057,24441,45567,44835,18301,5259)
Unknown column 'np.person' in 'where clause'