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 (45567,22509,45180,18652,17703,44870,45262,18427,4765,18430,44856,17492,16935,18301,44869,44875,45517,44640,19057,44674,17237,44531,18185,34194,44858,8753,44854,44762,44687,44745,44764,18996,45515,18172,14622,18719,17756,44671,14402,44853,6782,30963,44739,24441,44775,18572,17009,18900,17657,17835,13922,10402,28530,9341,45286,45516,44863,45561,17335,17755,24438,44861,17848,24411,44894,44835,17839,44868,18237,18446)
Unknown column 'np.person' in 'where clause'