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 (3883,13922,17527,44745,44687,6862,30135,44848,44853,34194,22509,18900,5410,18446,17904,44764,19078,17771,44835,44640,17835,45262,6875,18185,18648,44868,44768,44531,44851,18427,45072,30986,14622,18301,18172,45051,45277,18894,8753,45180,18430,45286,32454,17237,19057,24438,18652,10402,44762,18688,44894,17756,17278,18572,4765,44685,45421,17092,45518,44669,18286,44865,44858,17839,44775,44765,17351,45177,44869,36472)
Unknown column 'np.person' in 'where clause'