SELECT 
  layout_id 
FROM 
  cscart_bm_locations 
WHERE 
  location_id = 22

Query time 0.00024

Explain
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE cscart_bm_locations const PRIMARY PRIMARY 3 const 1

Result

layout_id
2