Error in query: SELECT DISTINCT(np.person) AS person, p.first_name, p.last_name, nx.id AS news_id FROM news_person AS np, person AS p, news_category AS nc LEFT JOIN news AS nx ON nx.id = (SELECT ny.id FROM news AS ny, news_person AS nyp, news_category AS nyc WHERE ny.id = nyc.news AND nyc.category = 310 AND nyp.person = np.person AND nyc.news = ny.id AND nyp.news = ny.id AND ny.entry_active = 't' ORDER BY entry_date DESC LIMIT 0, 1) WHERE np.person = p.id AND nc.category = 310 AND nc.news = np.news AND np.person = p.id AND p.id IN (17835,34194,37057,6609,13,17114,17755,18648,44711,43800,44837,45043,44685,44768,44845,45051,18900,45262,45072,13922,44669,5993,18237,17839,24441,19078,18042,5410,45561,4765,18446,8753,44861,18430,44762,45042,44873,16935,44766,17771,17556,14622,17601,44855,22509,17527,3883,17981,44856,3,18353,44764,44894,45517,44836,44674,18427,44687,18794,44745,6782,18981,45516,24438,18279,5259,44853,28530,18286,5388)
Unknown column 'np.person' in 'where clause'