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 (44873,17904,18301,44775,30135,45517,18652,45072,44854,45561,18446,45421,24438,44711,13988,44863,45277,44531,44870,44845,18427,17703,16885,44848,24412,44766,44867,10402,44856,45515,3883,18172,39676,17527,5388,24411,24441,18237,44836,17556,17278,45043,17351,37267,17092,44858,3,44861,18648,43800,18719,28530,18042,4765,44855,45051,8753,5993,44685,13,18794,44745,13922,18430,45177,16935,5259,28313,6875,9341)
Unknown column 'np.person' in 'where clause'