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 (14402,17278,44856,30135,10402,17848,14622,6875,17657,44870,44849,44767,4686,6609,44861,36472,31354,45177,22509,44640,44687,17904,30963,4765,44689,44845,17351,18794,44775,17527,44711,44836,45072,24411,44745,37267,18688,45051,44868,19057,44855,17835,18430,32454,17335,44865,28530,45516,44875,45286,18237,44851,45518,18301,5410,44531,45567,34194,17114,43800,18172,45517,28313,44848,9341,45229,44762,44854,45515,3883)
Unknown column 'np.person' in 'where clause'