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 (44768,44689,17755,45346,45177,32454,17601,44765,17756,37267,45277,16935,44640,18650,9341,24412,44853,10402,30963,44865,18652,44775,45421,18430,18353,18042,44884,18185,18648,3,44711,45042,44739,17981,39676,17835,13,24438,45043,18427,44767,44762,44855,44531,17839,44863,17771,18688,18794,16885,17904,44878,44837,44687,14622,17657,44894,44836,44866,17278,3883,44745,37057,18719,44848,13922,13988,18446,44861,45516)
Unknown column 'np.person' in 'where clause'