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 (18650,44870,44863,44845,18279,4686,17492,17601,17904,6782,17092,45561,44848,45515,8753,44853,18353,17771,44875,24412,44873,44868,14622,44849,45286,16935,45346,39676,17756,24411,44856,44866,44894,18652,17839,44687,17335,5993,45262,44531,9341,44640,34194,18719,17556,18286,44765,45277,45516,6609,45042,44878,44768,45177,45567,44745,28313,43800,17237,6862,17657,30963,17527,45229,44766,19078,45421,44674,36472,13988)
Unknown column 'np.person' in 'where clause'