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 (24412,17835,44711,17351,18900,44858,18286,14622,19078,44687,6875,18353,44674,18042,44873,44762,19057,4765,44764,18894,6609,30135,44835,5259,18650,44766,18427,45180,24411,44856,17335,45517,30963,45286,45277,44845,14402,45072,28530,37267,44669,34194,36472,18279,44837,18719,17755,44849,44765,5993,18301,45421,45515,13425,44853,44671,44640,44689,45042,17492,17848,44685,17556,18430,32454,18572,44531,10402,8753,13988)
Unknown column 'np.person' in 'where clause'