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 (30986,18652,44845,16935,13,18794,19057,44873,17237,44870,18650,44856,17556,44837,3,17904,18172,45042,18279,3883,17771,45561,44835,45177,44867,36472,44775,45072,24412,13922,44739,45286,24438,44868,45421,22509,45262,17756,44767,14622,10402,18688,39676,17657,44669,44848,44854,44863,17492,30135,32454,8753,45515,13988,44531,4765,31354,44640,45277,45346,28313,17092,18237,45516,18648,18427,44851,17839,17335,45229)
Unknown column 'np.person' in 'where clause'