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 (45177,18650,44711,44640,17755,45517,6875,30135,17904,44861,18042,18794,18279,44765,36472,45346,8753,45072,16885,30986,17756,44836,13922,44855,45262,44869,44764,18185,43800,45180,17848,45042,3883,17839,37057,17527,17351,44775,44671,44531,14402,17601,44875,14622,44768,44894,18996,17771,44669,10402,28313,44687,24441,45561,18572,17835,45518,44835,5410,17335,18430,45515,18353,18172,45567,6782,18446,44739,16935,45516)
Unknown column 'np.person' in 'where clause'