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 (44711,34194,13425,14622,45516,18794,44869,44837,5259,30135,44766,18446,18279,18894,17556,5410,44878,44687,44894,30963,39676,45518,18237,45277,45286,6875,18652,16935,18996,44884,24411,17492,31354,45051,28530,44640,44849,45043,14402,44861,3,44835,44851,45229,44685,17278,6782,24412,13922,24438,45180,19057,44674,44531,18427,44855,18981,44854,22509,17755,45421,44671,45072,17114,17703,44765,18353,17771,18688,44858)
Unknown column 'np.person' in 'where clause'