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 (45042,17492,17848,44845,17237,44689,44861,44835,45516,13,18301,19078,34194,24441,45262,24411,17703,17527,17981,45177,44869,6782,44873,5388,44894,45072,44765,13922,44884,44837,3,43800,44868,30135,30986,9341,44764,44669,18286,45051,44531,24438,18688,28313,45277,18279,45421,44836,18185,44849,44685,18652,18572,44853,17556,17009,44875,44745,10402,18237,44762,44687,17835,18794,5993,44739,18648,37267,45561,28530)
Unknown column 'np.person' in 'where clause'