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 (44835,44878,18981,44869,18042,18279,17756,17556,16885,17114,13,45177,44856,17657,14622,44685,18237,44762,44745,37057,17703,32454,45229,44868,19057,28313,17981,24441,18688,17839,17351,24412,17092,36472,18894,5410,45567,44867,13425,18427,17278,45421,45515,44848,43800,18900,44669,13922,24438,4686,5388,6875,18650,24411,4765,44837,18353,17492,16935,45286,6782,44640,18172,17335,8753,17848,44766,17835,17904,44858)
Unknown column 'np.person' in 'where clause'