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 (44836,17904,44640,24411,24441,13,17009,3883,17335,45518,18430,45262,44837,6782,18794,30986,17839,44855,36472,44849,18648,13988,17527,45515,44868,44765,44766,17981,6875,17703,18981,45421,45286,18894,17657,18172,17351,45180,18237,6609,44878,19057,17237,44745,44531,44894,17848,16885,18301,18652,3,44845,44869,17114,39676,24438,5388,28530,17492,18279,14402,44689,5993,45043,30963,44853,13922,17556,44669,18900)
Unknown column 'np.person' in 'where clause'