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 (44739,45561,44766,45518,24438,17351,39676,44671,45072,44685,44669,44762,13922,17114,43800,19057,5993,13988,18446,45567,17237,18353,44855,17527,14622,16885,16935,44640,44894,18719,17278,44745,18900,31354,45421,17904,44873,17835,18237,45346,44878,30986,17848,18652,8753,17755,28530,44870,3,4765,17335,17657,44689,24441,5410,17771,6609,45042,45516,44884,44835,44845,44863,18286,44861,18301,18427,14402,45177,18981)
Unknown column 'np.person' in 'where clause'