Invalid sql query :
select
*
from tblimgcontrols
JOIN imgcommoditycategories ON imgcommoditycategories.ImgControlRef = ImgControlID
JOIN tblcommodity ON CommodityRef = CommodityID
where ImgControlIsVisible != 0
and CommodityRef = '356'
and ImgBannerPlace = 'top_center'
order by RAND()
limit 1
=== Got error 28 from storage engine |