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 (44851,44745,10402,45042,19078,45180,17492,44669,44855,18301,44865,45561,34194,44854,44868,44687,17848,9341,18042,4765,5410,17601,5993,18900,45516,44764,45286,18652,6609,44894,18648,18172,44762,45072,28313,3883,17556,32454,44765,30963,31354,44875,45515,18185,44866,18286,18353,13922,22509,45229,45043,44835,18719,44849,16935,44884,43800,14402,14622,3,44685,24438,30135,24441,44873,18572,17756,44640,17351,17755)
Unknown column 'np.person' in 'where clause'