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 (17904,44866,44878,44836,44863,3,44865,5259,44875,44869,18185,44768,45177,43800,17527,44775,10402,18650,17278,17771,44765,18894,16885,44689,18446,44745,18648,44848,19078,44849,45072,44685,44835,17556,45346,44856,3883,4686,44854,6875,44739,18794,5388,13425,24438,8753,18301,17492,18427,44867,44851,45051,45515,18286,13988,44764,18353,45042,19057,16935,17237,13922,24411,44858,5993,17839,17848,17351,45516,44671)
Unknown column 'np.person' in 'where clause'