SELECT m.*, c.`option` AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.componentid = c.id
WHERE m.published = 1
ORDER BY m.sublevel, m.parent, m.ordering
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(20,51,52,24,53,54,55,56,1,58,59,60,65,61,62,63)
AND jf_content.reference_table='menu'
SELECT template
FROM jos_templates_menu
WHERE client_id = 0
AND (menuid = 0 OR menuid = 53)
ORDER BY menuid DESC
LIMIT 0, 1
SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email AS author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering
FROM jos_content AS a
INNER JOIN jos_content_frontpage AS f
ON f.content_id = a.id
LEFT JOIN jos_categories AS cc
ON cc.id = a.catid
LEFT JOIN jos_sections AS s
ON s.id = a.sectionid
LEFT JOIN jos_users AS u
ON u.id = a.created_by
LEFT JOIN jos_groups AS g
ON a.access = g.id
WHERE 1
AND a.access <= 0
AND a.state = 1
AND (( cc.published = 1
AND s.published = 1 ) OR ( a.catid = 0
AND a.sectionid = 0 ) )
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2012-01-28 07:16:48' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2012-01-28 07:16:48' )
ORDER BY f.ordering
LIMIT 0, 9
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(46)
AND jf_content.reference_table='content'
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(46)
AND jf_content.reference_table='users'
SELECT a.id, a.title, a.alias, a.title_alias, a.introtext, a.fulltext, a.sectionid, a.state, a.catid, a.created, a.created_by, a.created_by_alias, a.modified, a.modified_by, a.checked_out, a.checked_out_time, a.publish_up, a.publish_down, a.images, a.attribs, a.urls, a.metakey, a.metadesc, a.access, CASE WHEN CHAR_LENGTH(a.alias) THEN CONCAT_WS(':', a.id, a.alias) ELSE a.id END AS slug, CASE WHEN CHAR_LENGTH(cc.alias) THEN CONCAT_WS(":", cc.id, cc.alias) ELSE cc.id END AS catslug, CHAR_LENGTH( a.`fulltext` ) AS readmore, u.name AS author, u.usertype, g.name AS groups, u.email AS author_email, cc.title AS category, s.title AS section, s.ordering AS s_ordering, cc.ordering AS cc_ordering, a.ordering AS a_ordering, f.ordering AS f_ordering
FROM jos_content AS a
INNER JOIN jos_content_frontpage AS f
ON f.content_id = a.id
LEFT JOIN jos_categories AS cc
ON cc.id = a.catid
LEFT JOIN jos_sections AS s
ON s.id = a.sectionid
LEFT JOIN jos_users AS u
ON u.id = a.created_by
LEFT JOIN jos_groups AS g
ON a.access = g.id
WHERE 1
AND a.access <= 0
AND a.state = 1
AND (( cc.published = 1
AND s.published = 1 ) OR ( a.catid = 0
AND a.sectionid = 0 ) )
AND ( a.publish_up = '0000-00-00 00:00:00' OR a.publish_up <= '2012-01-28 07:16:48' )
AND ( a.publish_down = '0000-00-00 00:00:00' OR a.publish_down >= '2012-01-28 07:16:48' )
ORDER BY f.ordering
SELECT id, title, module, position, content, showtitle, control, params
FROM jos_modules AS m
LEFT JOIN jos_modules_menu AS mm
ON mm.moduleid = m.id
WHERE m.published = 1
AND m.access <= 0
AND m.client_id = 0
AND ( mm.menuid = 53 OR mm.menuid = 0 )
ORDER BY position, ordering
SELECT group_id,group_name,group_level
FROM `jos_vm_auth_group`
ORDER BY group_level
SELECT jos_vm_shopper_group.shopper_group_id, show_price_including_tax, `default`, shopper_group_discount
FROM `jos_vm_shopper_group`
WHERE jos_vm_shopper_group.vendor_id='1'
AND `default`='1'
SELECT `name`
FROM `jos_core_acl_aro_groups`
WHERE `id` =29
SELECT vendor_id, vendor_min_pov,vendor_name,vendor_store_name,contact_email,vendor_full_image, vendor_freeshipping,
vendor_address_1,vendor_address_2, vendor_url, vendor_city, vendor_state, vendor_country, country_2_code, country_3_code,
vendor_zip, vendor_phone, vendor_store_desc, vendor_currency, vendor_currency_display_style,
vendor_accepted_currencies, vendor_address_format, vendor_date_format, state_name
FROM (`jos_vm_vendor` v, `jos_vm_country` c)
LEFT JOIN jos_vm_state s
ON (v.vendor_state=s.state_2_code
AND s.country_id=c.country_id)
WHERE `v`.`vendor_id`=1
AND (`v`.`vendor_country`=`c`.`country_2_code` OR `v`.`vendor_country`=`c`.`country_3_code`);
SELECT id
FROM jos_menu
WHERE link='index.php?option=com_virtuemart'
AND published=1
SELECT DISTINCT product_sku
FROM jos_vm_product
WHERE (jos_vm_product.product_parent_id='' OR jos_vm_product.product_parent_id='0')
AND vendor_id='1'
AND jos_vm_product.product_publish='Y'
AND jos_vm_product.product_special='Y'
ORDER BY RAND()
LIMIT 0, 3
SELECT product_id, product_name, product_parent_id, product_thumb_image
FROM jos_vm_product
WHERE product_sku='hu2500h'
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(56)
AND jf_content.reference_table='vm_product'
SELECT jos_vm_category.category_id
FROM jos_vm_category,jos_vm_product_category_xref
WHERE product_id='56'
AND jos_vm_category.category_id = jos_vm_product_category_xref.category_id
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(6,21)
AND jf_content.reference_table='vm_category'
SELECT
`jos_vm_product`.`product_parent_id` AS product_parent_id,
`jos_vm_category`.`category_flypage`
FROM
`jos_vm_product`
LEFT JOIN `jos_vm_product_category_xref`
ON `jos_vm_product_category_xref`.`product_id` = `jos_vm_product`.`product_id`
LEFT JOIN `jos_vm_category`
ON `jos_vm_product_category_xref`.`category_id` = `jos_vm_category`.`category_id`
WHERE `jos_vm_product`.`product_id`='56'
SELECT product_id, `jos_vm_product`.*
FROM `jos_vm_product`
WHERE `product_id`=56
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(56)
AND jf_content.reference_table='vm_product'
SELECT amount,is_percent
FROM jos_vm_product,jos_vm_product_discount
WHERE product_id='56'
AND (start_date<='1327735009' OR start_date=0)
AND (end_date>='1327703760' OR end_date=0)
AND product_discount_id=discount_id
SELECT product_parent_id
FROM jos_vm_product
WHERE product_id=56
SELECT amount,is_percent
FROM jos_vm_product,jos_vm_product_discount
WHERE product_id='0'
AND (start_date<='1327735009' OR start_date=0)
AND (end_date>='1327703760' OR end_date=0)
AND product_discount_id=discount_id
SELECT vendor_id
FROM jos_vm_product
WHERE product_id='56'
SELECT shopper_group_id,shopper_group_discount
FROM jos_vm_shopper_group
WHERE vendor_id='1'
AND `default`='1'
SELECT `product_price`, `product_price_id`, `product_currency`
FROM `jos_vm_product_price`
WHERE product_id=56
AND shopper_group_id=5
ORDER BY price_quantity_start
SELECT product_weight, tax_rate
FROM jos_vm_product, jos_vm_tax_rate
WHERE product_tax_id=tax_rate_id
AND product_id='56'
SELECT `product_id`
FROM `jos_vm_product_attribute_sku`
WHERE `product_id`=56
SELECT `attribute`,`custom_attribute`
FROM `jos_vm_product`
WHERE `product_id`=56
SELECT product_id, product_name, product_parent_id, product_thumb_image
FROM jos_vm_product
WHERE product_sku='hu15ma'
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(50)
AND jf_content.reference_table='vm_product'
SELECT jos_vm_category.category_id
FROM jos_vm_category,jos_vm_product_category_xref
WHERE product_id='50'
AND jos_vm_category.category_id = jos_vm_product_category_xref.category_id
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(6,13)
AND jf_content.reference_table='vm_category'
SELECT
`jos_vm_product`.`product_parent_id` AS product_parent_id,
`jos_vm_category`.`category_flypage`
FROM
`jos_vm_product`
LEFT JOIN `jos_vm_product_category_xref`
ON `jos_vm_product_category_xref`.`product_id` = `jos_vm_product`.`product_id`
LEFT JOIN `jos_vm_category`
ON `jos_vm_product_category_xref`.`category_id` = `jos_vm_category`.`category_id`
WHERE `jos_vm_product`.`product_id`='50'
SELECT product_id, `jos_vm_product`.*
FROM `jos_vm_product`
WHERE `product_id`=50
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(50)
AND jf_content.reference_table='vm_product'
SELECT amount,is_percent
FROM jos_vm_product,jos_vm_product_discount
WHERE product_id='50'
AND (start_date<='1327735009' OR start_date=0)
AND (end_date>='1327703760' OR end_date=0)
AND product_discount_id=discount_id
SELECT product_parent_id
FROM jos_vm_product
WHERE product_id=50
SELECT amount,is_percent
FROM jos_vm_product,jos_vm_product_discount
WHERE product_id='0'
AND (start_date<='1327735009' OR start_date=0)
AND (end_date>='1327703760' OR end_date=0)
AND product_discount_id=discount_id
SELECT vendor_id
FROM jos_vm_product
WHERE product_id='50'
SELECT `product_price`, `product_price_id`, `product_currency`
FROM `jos_vm_product_price`
WHERE product_id=50
AND shopper_group_id=5
ORDER BY price_quantity_start
SELECT product_weight, tax_rate
FROM jos_vm_product, jos_vm_tax_rate
WHERE product_tax_id=tax_rate_id
AND product_id='50'
SELECT `product_id`
FROM `jos_vm_product_attribute_sku`
WHERE `product_id`=50
SELECT `attribute`,`custom_attribute`
FROM `jos_vm_product`
WHERE `product_id`=50
SELECT product_id, product_name, product_parent_id, product_thumb_image
FROM jos_vm_product
WHERE product_sku='hu75ma'
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(51)
AND jf_content.reference_table='vm_product'
SELECT jos_vm_category.category_id
FROM jos_vm_category,jos_vm_product_category_xref
WHERE product_id='51'
AND jos_vm_category.category_id = jos_vm_product_category_xref.category_id
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(6,13)
AND jf_content.reference_table='vm_category'
SELECT
`jos_vm_product`.`product_parent_id` AS product_parent_id,
`jos_vm_category`.`category_flypage`
FROM
`jos_vm_product`
LEFT JOIN `jos_vm_product_category_xref`
ON `jos_vm_product_category_xref`.`product_id` = `jos_vm_product`.`product_id`
LEFT JOIN `jos_vm_category`
ON `jos_vm_product_category_xref`.`category_id` = `jos_vm_category`.`category_id`
WHERE `jos_vm_product`.`product_id`='51'
SELECT product_id, `jos_vm_product`.*
FROM `jos_vm_product`
WHERE `product_id`=51
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(51)
AND jf_content.reference_table='vm_product'
SELECT amount,is_percent
FROM jos_vm_product,jos_vm_product_discount
WHERE product_id='51'
AND (start_date<='1327735009' OR start_date=0)
AND (end_date>='1327703760' OR end_date=0)
AND product_discount_id=discount_id
SELECT product_parent_id
FROM jos_vm_product
WHERE product_id=51
SELECT amount,is_percent
FROM jos_vm_product,jos_vm_product_discount
WHERE product_id='0'
AND (start_date<='1327735009' OR start_date=0)
AND (end_date>='1327703760' OR end_date=0)
AND product_discount_id=discount_id
SELECT vendor_id
FROM jos_vm_product
WHERE product_id='51'
SELECT `product_price`, `product_price_id`, `product_currency`
FROM `jos_vm_product_price`
WHERE product_id=51
AND shopper_group_id=5
ORDER BY price_quantity_start
SELECT product_weight, tax_rate
FROM jos_vm_product, jos_vm_tax_rate
WHERE product_tax_id=tax_rate_id
AND product_id='51'
SELECT `product_id`
FROM `jos_vm_product_attribute_sku`
WHERE `product_id`=51
SELECT `attribute`,`custom_attribute`
FROM `jos_vm_product`
WHERE `product_id`=51
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='0'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(15,6,21,7,10,47,9,33,36,48)
AND jf_content.reference_table='vm_category'
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='15'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(24,23)
AND jf_content.reference_table='vm_category'
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='24'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(25,26,34)
AND jf_content.reference_table='vm_category'
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='25'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='26'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='34'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='23'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='6'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(13,11,12,14,22)
AND jf_content.reference_table='vm_category'
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='13'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='11'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='12'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='14'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='22'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='21'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='7'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(49,51,52,53,50,18,17)
AND jf_content.reference_table='vm_category'
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='49'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='51'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='52'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='53'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='50'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='18'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='17'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='10'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(16,20,46,35)
AND jf_content.reference_table='vm_category'
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='16'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='20'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(27,28)
AND jf_content.reference_table='vm_category'
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='27'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='28'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='46'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='35'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='47'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='9'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='33'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='36'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_name, category_id, category_child_id
FROM jos_vm_category AS a, jos_vm_category_xref AS b
WHERE a.category_publish='Y'
AND b.category_parent_id='48'
AND a.category_id=b.category_child_id
ORDER BY category_parent_id, list_order, category_name ASC
SELECT category_id, category_description, category_name,category_child_id AS cid, category_parent_id AS pid,list_order, category_publish
FROM jos_vm_category, jos_vm_category_xref
WHERE jos_vm_category.category_publish='Y'
AND jos_vm_category.category_id=jos_vm_category_xref.category_child_id
ORDER BY jos_vm_category.list_order ASC, jos_vm_category.category_name ASC
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=1
AND jf_content.published=1
AND jf_content.reference_id IN(25,27,39,16,49,24,13,42,26,15,11,28,41,44,23,51,12,6,43,40,52,34,20,45,21,53,46,50,31,14,7,35,18,17,22,10,47,9,33,36,48)
AND jf_content.reference_table='vm_category'
SELECT m.*, c.`option` AS component
FROM jos_menu AS m
LEFT JOIN jos_components AS c
ON m.componentid = c.id
WHERE m.published = 1
ORDER BY m.sublevel, m.parent, m.ordering
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=3
AND jf_content.published=1
AND jf_content.reference_id IN(20,51,52,24,53,54,55,56,1,58,59,60,65,61,62,63)
AND jf_content.reference_table='menu'
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=3
AND jf_content.published=1
AND jf_content.reference_id IN(53)
AND jf_content.reference_table='menu'
SELECT jf_content.reference_field, jf_content.value, jf_content.reference_id, jf_content.original_value
FROM jos_jf_content AS jf_content
WHERE jf_content.language_id=2
AND jf_content.published=1
AND jf_content.reference_id IN(53)
AND jf_content.reference_table='menu'