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 (13988,44765,18279,18301,19078,17556,45518,45517,45072,17904,44685,44865,45515,44531,39676,44775,45421,9341,44764,45561,17351,17237,18996,17657,4765,17009,44836,24441,13922,30986,45262,14402,44868,5388,45277,31354,44851,30135,44870,44848,17848,44855,16935,17278,17092,3,44640,44849,44853,17755,18353,45229,44669,45346,18042,30963,24411,5410,6782,18719,44711,18894,44689,44745,44878,10402,6875,45286,18648,5259)
Unknown column 'np.person' in 'where clause'