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 (44767,18981,44689,4686,45286,44865,45042,17278,44866,16935,44849,45229,5410,44739,18648,39676,17009,24412,14622,45518,44845,14402,22509,44863,44894,13,44858,44848,45346,36472,5993,6862,44837,18430,45180,18286,44835,17755,37267,17492,18719,44766,45421,44875,44687,45262,28313,30963,30986,43800,44878,3,18572,37057,31354,17351,44853,44851,17771,19057,44764,24441,44884,17839,45051,32454,18650,17835,18900,44873)
Unknown column 'np.person' in 'where clause'