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 (19057,44766,17009,44775,22509,18981,44858,44866,3,18688,14622,18430,17657,44674,18279,28313,16885,44669,18301,44671,13,17237,44745,5388,44765,45346,13425,44640,44894,24438,44867,44685,17556,10402,24411,4765,44856,17351,6862,30986,17981,44853,14402,44869,44865,18996,43800,18237,18794,44764,18572,8753,18353,45043,18427,30963,44845,45286,17848,45051,45421,17092,13922,6875,24412,44870,45561,45517,44762,44739)
Unknown column 'np.person' in 'where clause'