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 (13,44689,44836,44855,19057,17981,18572,44863,4765,17492,43800,45346,5388,44856,18688,18237,24412,44671,19078,34194,37267,28530,18648,45072,17657,18652,44531,5259,45421,3883,17904,18353,45515,13922,17114,44848,30135,44764,17556,18430,37057,17848,28313,30986,44884,18286,17771,44766,39676,4686,44878,44687,44669,18301,44865,14402,44867,6862,44745,18279,18996,32454,18446,17351,45262,3,45286,17092,44685,13425)
Unknown column 'np.person' in 'where clause'