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 (45277,37267,18446,18427,18279,17771,45262,44870,17835,44894,24412,30963,5410,13425,18301,45517,18237,44766,17755,44762,44845,45180,45043,17703,18430,44878,37057,3883,44863,18648,18650,6875,45515,18353,31354,44674,44836,13922,44765,19078,6862,17492,44884,19057,18894,8753,14622,30986,9341,44835,44848,44865,22509,24441,10402,5388,44856,4686,17556,24411,17657,44531,45561,45516,13,17009,34194,45229,18981,17848)
Unknown column 'np.person' in 'where clause'