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 (17351,18648,44849,13922,44854,44745,44768,18650,17601,13988,44894,45517,18719,10402,44836,31354,5410,44861,17278,44855,44845,18446,13425,44835,44865,44765,44869,44671,17114,45518,19057,18996,44851,45051,44764,44848,44867,17492,45516,44531,5993,4765,17904,17848,6609,18353,44853,18572,30963,6875,44669,17237,44873,45346,36472,45262,32454,30135,44674,18185,17839,5388,44837,43800,3883,18427,39676,45567,44687,18172)
Unknown column 'np.person' in 'where clause'