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 (18301,17492,45051,44837,17237,17335,45180,17839,44762,44867,44764,44767,30986,18894,18430,19078,24411,44687,24412,19057,44765,44685,9341,34194,45517,44845,44640,17771,44674,44866,44869,44739,22509,6782,18353,24441,17278,44884,44858,17848,44531,39676,43800,17009,44768,18652,17351,18719,3883,30963,45262,44835,36472,18572,10402,45567,45286,17756,18237,17657,13988,45072,28313,17114,17092,18650,44855,45515,4686,18286)
Unknown column 'np.person' in 'where clause'