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 (18688,16885,10402,17009,30963,44851,44711,44868,44671,30986,17092,44873,45421,44762,44856,44878,18237,18894,6609,18430,18981,44745,44764,17657,18648,24411,45177,4765,45346,17839,28530,18719,14402,39676,44687,18353,44849,45517,17771,44835,45262,18042,17492,19057,17351,18301,45561,5388,17848,44865,32454,22509,17756,45051,30135,44837,18996,18652,18446,6875,17755,44767,18185,4686,44739,31354,45567,17601,36472,44765)
Unknown column 'np.person' in 'where clause'