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 (44851,30963,44835,28313,44775,44837,44867,31354,17278,44765,45051,45229,18042,4686,44878,17114,44739,18719,13988,24411,30986,44689,39676,18650,18430,34194,44671,44640,4765,45561,17092,45567,14402,17335,19078,18996,18237,17904,16935,18652,17756,45262,24438,44768,44674,13922,37267,18572,17835,3883,32454,17492,17657,18446,44870,44685,44845,44894,45515,45518,44855,45277,17556,17009,44866,6875,45180,45072,45286,44764)
Unknown column 'np.person' in 'where clause'