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 (45561,44878,44764,45042,18650,18427,39676,44861,44870,44674,37057,5388,18301,44837,17237,44835,45421,28530,19078,6862,37267,44858,44685,17771,18430,24412,18719,44873,19057,44745,17657,44768,45072,17278,6875,44853,17601,8753,16885,3,44671,5259,24411,17839,44849,44863,24441,45229,17756,44868,43800,44711,4765,44875,45567,30963,31354,18353,32454,17848,44775,18279,45517,44848,30135,18900,44669,18572,44640,44766)
Unknown column 'np.person' in 'where clause'