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 (44775,18719,24411,18996,44863,4765,37267,17492,9341,17335,45042,44855,44671,30963,44766,13425,17755,45517,17092,10402,14622,44845,18185,28313,18572,45515,45262,5993,44851,17839,19057,45229,44739,5259,18688,17114,44848,44765,45421,45051,44762,17278,18981,44674,45180,18650,44531,22509,44745,18794,17556,30986,44685,45043,44837,37057,44835,18237,43800,44764,6862,30135,44861,44884,44856,18446,6782,17237,17981,5388)
Unknown column 'np.person' in 'where clause'