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 (24438,6875,44640,5410,24411,17839,16935,6609,45516,44873,44837,44835,44669,39676,18279,44531,17092,44765,18185,18648,44884,18572,45229,44858,18652,44863,13,43800,17278,18353,44674,17755,18446,44762,45515,8753,30135,37267,17835,17237,44766,17848,18996,44853,44836,19078,45277,44671,18650,17657,44845,3,24412,5993,44855,17556,45567,45561,44711,5388,3883,44687,10402,44775,18894,45421,44848,18900,30963,17492)
Unknown column 'np.person' in 'where clause'