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 (24412,18719,44768,16885,45561,44894,44865,44671,18572,6875,36472,14622,44875,18427,14402,44687,45042,44855,44775,18279,44739,44762,18794,44870,44869,28313,45516,3,22509,18648,17278,19078,13,18900,45177,18650,18430,44765,44640,44766,24411,45229,44745,13988,5410,44764,44861,45043,44836,44853,44835,17492,17351,17904,44873,44863,4686,44674,17237,18237,45421,43800,45517,8753,17009,45286,18185,17601,18652,44689)
Unknown column 'np.person' in 'where clause'