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 (18427,44837,22509,37057,44884,43800,6782,18652,44685,44739,17492,17755,45515,44854,17835,44878,18301,3,44531,18446,18648,18279,16885,14622,45286,17278,13,39676,45517,45043,45177,19078,3883,6609,13425,9341,24441,44768,44762,10402,44687,31354,44875,17981,44858,18900,44836,18572,45421,13988,17703,18185,18981,44863,24412,45518,45042,5410,5259,17556,45229,44894,17771,44848,17092,44765,44764,28313,44870,30986)
Unknown column 'np.person' in 'where clause'