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 (17556,44531,18430,44875,5388,44873,17835,5410,18996,44848,36472,28313,44869,13,17278,19078,19057,5259,17771,44858,17009,17492,17981,44884,8753,44640,45180,6782,44851,45177,45567,13988,44685,18427,44836,4765,44745,18719,44762,44845,44866,44671,45042,4686,37057,6862,18042,45561,44837,44739,44868,44835,18353,44689,44861,44768,16935,45229,10402,44855,44853,30963,18237,18900,44765,17657,44870,45517,45286,24438)
Unknown column 'np.person' in 'where clause'