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 (17335,44762,17237,18042,44884,24441,13425,4686,30963,44845,24411,17839,44764,44866,31354,18353,22509,45517,17556,45561,43800,19057,4765,3,18427,44671,44768,44863,17009,44689,6862,5410,17904,44869,17981,9341,18301,44848,13922,24438,44687,45277,44739,3883,44640,10402,5259,8753,6782,37267,44835,44867,44858,18572,13,18648,44685,45286,44765,19078,44531,17848,44873,45051,44868,5388,17092,45229,45567,45043)
Unknown column 'np.person' in 'where clause'