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 (44765,6862,45286,19078,17771,45177,24411,17527,24412,31354,45567,17556,24441,18688,30135,6875,43800,5388,17492,17839,18648,3883,17114,45042,5259,17904,17601,44669,17703,18794,18279,18430,44861,18237,44685,45518,18301,16885,37267,44745,45180,18652,17756,18900,45051,44768,17981,44867,18172,22509,44671,18572,45072,44775,17092,17335,39676,30963,45561,17278,45229,45043,44764,34194,18650,3,13922,28530,24438,18427)
Unknown column 'np.person' in 'where clause'