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 (6862,44870,13922,16885,18301,44640,44848,17756,45229,17556,44689,44762,18900,17848,45177,24441,17601,18237,17835,32454,4765,44745,9341,17335,31354,17527,17839,45561,18286,44861,44685,6875,44856,17771,44768,45515,18719,44878,17237,36472,45286,45072,44766,5388,18894,44866,18446,17703,24438,39676,45517,18279,28530,44764,44851,44873,19078,18794,45051,44858,44845,44837,18172,44865,45567,13,17009,45262,44531,17904)
Unknown column 'np.person' in 'where clause'