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 (44856,18279,13922,44766,10402,44687,18719,44745,32454,18286,44689,17981,37057,45421,44861,17835,18237,28530,16935,44835,18652,44867,17335,44685,24441,44863,18430,44875,30963,18648,17755,44711,45072,44884,45515,45517,4765,5259,3883,43800,45042,45346,28313,36472,18042,17703,44878,14622,44855,17556,45277,17756,5388,44854,30135,17278,17848,44836,18446,44865,44775,44767,18185,17657,17839,37267,24438,18894,44853,18794)
Unknown column 'np.person' in 'where clause'