Error: 1054 Unknown column 'keyword_relationships.rank' in 'order clause'
The following SQL statement was executed:
select * from (select distinct properties_s_h.* from properties_s_h,property_keywords where property_keywords.keyword_id='395' and property_keywords.property_id=properties_s_h.id and properties_s_h.id!='1440289' and properties_s_h.block is null and properties_s_h.status!='n' order by property_keywords.rank desc ) sponsors union select * from ( select properties_s_h.* from properties_s_h, keyword_relationships
where properties_s_h.keyword_id=keyword_relationships.related_keyword_id
and keyword_relationships.keyword_id='395'
and properties_s_h.block is null and properties_s_h.status ='n' and properties_s_h.id!='1440289' order by keyword_relationships.rank desc, properties_s_h.id desc ) normal limit 0,8
Error: 0
The following SQL statement was executed:
select count(distinct(code)) counter,count(*) total from properties_s_h where telephone = '13813860074' and block is null
Error: 0
The following SQL statement was executed:
select count(*) counter from properties_s_h where telephone = '13813860074' and block is null